Lets implement the following functions to solve this problem Let's redefine this issue here a bit: TODO: - [x] Add initialize Header function in case Datafile has been newly created - [x] Add checkheader to check for header consistency - [ ] Optional: delete entire file if header was wrong - [x] Add initialize file _Originally posted by @SPauly in https://github.com/SPauly/GetIntoCPPagain/issues/20#issuecomment-968306632_