I cannot see your attached VI but I can clarify the sequence.
After your application started you use the following sequence:
Open File, Write File, Flush File, Write File, Flush File .... Close File.
Then you can stop your application.
Flush File does not accept any data it forces only to put previously written data and file information to disk. The runtime librarys and file system drivers have buffer to minimize the access to the disk so data written to a file will not be necessarily written to disk. Closeing a file forces this and releases the file. Flush file does the same but do not release the file. You avoid all the overhead which is done during the open of a file especially checking the access rights.
Waldemar
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions