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: 

How do i clear a text file.....

Solved!
Go to solution

Hi All...

 

I wud like to know how to clear a text file....

 

 

Currently am replacing the text file and writing...Actually i need to open the  file(after clearing the contents)and write.

 

 

I think replacing the file each time is not a good idea...

So please let me know how to clear the text file.

 

Thanks in advance.

0 Kudos
Message 1 of 6
(11,542 Views)

If this question is related to this thread please continue there

 

Thanks,

Mathan

0 Kudos
Message 2 of 6
(11,540 Views)

I didnt post it there bse its not completely related to that...There i was not didcussing about clearing text file...U cud find the difference i think....

 

0 Kudos
Message 3 of 6
(11,530 Views)
Solution
Accepted by topic author user_1
You can set the file size to zero using "Set File Size" from the advanced file io palette.
Message 4 of 6
(11,523 Views)
Thanks for the solution
0 Kudos
Message 5 of 6
(11,519 Views)
Thank you for the answer..simple but very useful for me.
0 Kudos
Message 6 of 6
(10,401 Views)