LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Prepending to beginning of file


@josborne wrote:

 

Let's say you have a very large file.  The file format doesn't really matter.  And you want to append some data to the beginning of the file (i.e. "pre-pend").  Is there any way to do this WITHOUT reading the entire file into memory and then re-writing the entire file?  I can't think of a way to do it in LabVIEW.  

 

[...]

 

EDIT:  I understand there are a lot of "workarounds" to this problem. 


Just one of these workaround:

 

1) Place the data you want to prepend in file A

2) Join  A + B where B is the file you want to prepend data to (thinking about using bash command cat).

 

So: you don't need to read the entire file B in memory, and that's fine.

But you have to rewrite the entire file, sorry.

 

Marco

0 Kudos
Message 11 of 11
(478 Views)