I’m using Xcode for research, and want to output results along the way. It seems that if I attempt to write to a file after calling glutInit(), the physical file on the HD is unchanged, but if I subsequently read from the file, during a separate run, the altered data is found. Is there a conflict between glutInit() and fstream with regard to output?
What makes you believe that the ‘file on the HD is unchanged’? If a subsequent run of the program reads the altered data, then it was written.
Output may be buffered until you explicitly flush the buffers or close the file. Try calling the flush() method after outputting your data.
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.