05-28-2009 06:27 PM
When using the function Reading from Text File a file I notice that the 1st character is left in the file. I read the line correctly.
When appending a 2nd line that character is in the file.
Attached is part of the code vi.
Any ideas ?
Thank you.
Elik
Solved! Go to Solution.
05-28-2009 07:35 PM - edited 05-28-2009 07:41 PM
Can you attach an actual data file and tell us what you mean by "first character". How many characters do you have per line?
Can you tell us what you see in the modified file and what you expect to see.
Everything looks right.
Setting the file size to "end" on an existing file does not do anything useful. Could it be you want to set file position instead?
Try to set the file position to start and the new data will be written from the beginning of the file.
05-28-2009 09:38 PM
Hi,
The 1st line for purpose of demostration is Line 1.
After reading the file and concatenated with Line 2 the file looks like this,
LLine 1
Line 2
The 1st character of Line 1 stays after read and when I write back the concatenated strings that is the final results.
I'll try to set the file pointer to starts after reading.
Thanks.
Elik
05-28-2009 09:47 PM
Hi,
Thank again. Setting to start did the trick.
Elik
05-28-2009 10:04 PM
05-29-2009 10:43 AM