07-30-2014 08:24 AM
Hello,
i have a program that creates results which should be logged into a file.
For this i execute:
Open File
Read From Text File
Then concatenate the read string with the new data
Write To Text File
Close File
Example in attachment
Now i execute this in a loop for two times but finally i have three lines in the file. And the first line is doubled.
Whats wrong here?
Is there also a soution to just add text at the end of the without having to read everything?
Thanks for help
07-30-2014 08:27 AM - edited 07-30-2014 08:27 AM
07-30-2014 08:30 AM
07-30-2014 08:32 AM - edited 07-30-2014 08:34 AM
If i understood well this is what you want to do.
the thing is that you were reading the text from the file when you opened, and you were putting that text back in the file as a new line.
when you open a file that has data already, the new data will append. so there is no reason to read the current data and rewrite it.
thanks