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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

overwriting a part of a text file?

Hi, i am writing an application where i can set markers on a waveform graph,
now i want to write the values of the markers in a text-based file
(spreadsheet) I make one file with several markers, but it happens that i
want to overwrite a part of the text file, where a marker is, does anyone
knows how to overwrite a part of a text file, with a VI with inputs of an
offset and a length?

Best regards,
Thijs
0 Kudos
Message 1 of 2
(2,235 Views)
The "Write File" function has an offset input. The lenght written is the length of the data on input. First you open the file giving its path to "Open File", you write data at offset and "Close File". The previous content of the file at offset is overwritten.


LabVIEW, C'est LabVIEW

0 Kudos
Message 2 of 2
(2,234 Views)