I have a function that saves to a file. If it is set to append I will need to check if the file has any data in it; if not then it will need to write the header info out. My problem is, how would I get the filesize? If i open it to append wouldent the file pointer would be set to the end of the file?
Edit: Actually it would also have to check the first four bytes of the file to make sure its the valid file format as well.