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.
07-01-2013 08:48 AM
I would like to dynamically alter/add new headers to a csv file as needed. The code I have below overwrites the previously written data an amount equal to each new header added each time I call the vi below. Any suggestions on how to do this without reading in the file each time? I want to avoid the processing time of reading in the file between processing new data.
Thanks!
07-01-2013 09:24 AM
The simple answer is No.
You need to read the entire file to pre-pend that line.
If you were actually working with true Excel files, you can.
07-01-2013 02:32 PM
Thanks! That's what I thought.
07-01-2013 03:51 PM
If you're gonna change the file several time during a run you can ofc. keep the data/file in memory and modify that instead.
/Y
07-02-2013 01:13 PM
The problem with that is for days of testing you might loose data if something goes wrong.
07-02-2013 02:31 PM
Yes, but you can still write everytime, you dont need to read the file back. 🙂
/Y