Hello,
thanks for the reply. I will get a chance to test it tomorrow (when I get to the machine this app is for).
I have a few questions:
1) will fprintf automatically create the file, or do I need to create it beforehand, and if it is created automatically, where will that file be saved?
2) If I run the program for example three times, will I have 3 records in the same file or will it just overwrite?
The file is created relative to the directory from which you started the application. If you have a favourite place to put it, you can put this as absolute path into your code: fopen("C:\\Data\\FARoutput.txt", "w"). (Some people hate hard-coded paths like this in source code, so prepare for a battle with your local code reviewer.. ;)