From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-14-2005 05:36 AM
09-14-2005 06:07 AM
Hi
Could you attach the vi as LV7.0 (Menu File>>Save with options>>Save for previous version).
Thomas
09-14-2005 06:12 AM
Carriage return is only the same as "line break" on Macintosh. On Windows, you need a Carriage return + Line Feed.
Use the NEW LINE constant to give you a line break, regardless of platform.
OTHER TIPS:
Blog for (mostly LabVIEW) programmers: Tips And Tricks
09-14-2005 06:17 AM
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
09-14-2005 06:23 AM
As I see it you are reading the entire file, replacing the last character with a line break + a new line, then re-writing the entire string.
If your file is small, it won't matter, but as that file gets bigger, this gets more and more inefficient. Imagine a 10-meg file that you want to add a single line to. You have to read 10 megs, add a line to 10 megs, and write 10 megs.
Consider using the raw file functions to open the file, and write the new data at the end position-1, and close the file. Super-quick, because you don't handle all the data that's gone before. See attached picture.
Blog for (mostly LabVIEW) programmers: Tips And Tricks