05-23-2017 03:58 AM
Hi All,
I am trying to overwrite specific lines in a datafile (either strings or doubles, does not matter) but without having to load the whole datafile.
I know the option of reading the ASCII file line by line, changing a few lines in LabView and then writing each line to a new datafile by appending the lines using Write to Spreadsheet File. Moreover, reading/writing line by line is super slow and also kind of stupid in case there exists a way to do it for one line only. Even more importantly, I do not want to load the whole dataset to memory in one chunk since the files can reach >1GB.
Since I have not found any solution online yet I am asking you guys:
Is there a way to do this in LabView 2014?
Otherwise, do you know a (memory-efficient) workaround?
Thanks in advance!
Solved! Go to Solution.
05-23-2017 06:01 AM
Only if all of the lines are the exact same size. If they are, you just just set the file pointer (Set File Position) to the start of the line and write your updated line.