LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to append contents to an existing file contents at the end of file?

Hi all
 
I am Kiran, working with LV8.0  FDS
 
I find difficulty while trying to add new file contents(some messages)  to an existing file at the end /begining of a file.
 
Whenever i try to do that,it is replacing the previous contents,but i dont need that. i want the contents to be appended.
 
Plz suggest me.
 
thanks & regards
       kiran
0 Kudos
Message 1 of 4
(2,869 Views)
Hi Kiran,

you should use the 'Set File position' function after opening the file and before writing to it!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(2,867 Views)

hi gerdw,

i did the same, but the file contents are replacing.

can u plz send me some screen shots

thanks

kiran

0 Kudos
Message 3 of 4
(2,862 Views)
Hi Kiran,

yes, I can attach a screenshot Smiley Happy

(open file, set file position to end, write text, close file)

Message Edited by GerdW on 08-16-2007 03:19 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 4
(2,857 Views)