12-12-2019 10:49 PM
Hi everyone,
I am trying to write continuous data in the text file but it only write to the current value can anyone guide me what should i need to do for writing the data the continuous data. Please refer to the attached file.
Thanks in advance.
Regards,
Taufeey
12-13-2019 12:21 AM
Open your file before the loop. Write data in the loop. Close the file after the loop.
Right now you are reopening the file every iteration which puts the file pointer at the beginning causing it to overwrite the existing file.
If you do have to open an existing file and need to append data to the end of it, then you use the Set File Position Pointer function to move the pointer to the end of hte file.