LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write to file more then 1 time.

Hellow.
I open doc/txt file and write some data and close the file. Next time i tray write to same file, but new data delete old one.
How i can write new data in the same file, but after old wothout deleting it?
0 Kudos
Message 1 of 5
(2,755 Views)
Select the correct values for the write functions parameters.
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 5
(2,750 Views)
Vaj,

you have to move the write-position in regard of the file-length to append data to a file. This can be done with "Set File Position" and then select "end" as input for "form (0 : start)".

hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 5
(2,748 Views)

Tnx for your help for use function "set file position".

I have more questions about write to file.

It is posible for write to exist file , and inser data between two section of already exist data without deleting the last.

Tnx for any hlpSmiley Very Happy

 

0 Kudos
Message 4 of 5
(2,696 Views)
Vaji,

this has to be done in software. So you have to read out at least the part you want to keep at the end of the file, attach the insertion infront of it and rewrite it to file using the same fileposition as where you started to read before...


hope this helps,
Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 5 of 5
(2,686 Views)