LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Find out the size of a file?

Solved!
Go to solution

I need to program a vi, which appends data to a text file.

The text file may not become larger that a defined size, so the vi should check the size of the file first.

 

How can I do this?

Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
0 Kudos
Message 1 of 4
(2,841 Views)
Solution
Accepted by topic author johanneshoer

Hello Johannes, you should use the File/Directory info node in the File I/O -> Advanced File Functions palette.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 2 of 4
(2,837 Views)

The LabVIEW palette contains a VI for getting the size of a file, it's called 'Get File Size'

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 3 of 4
(2,834 Views)

Johannes,

 

you should use the File/Directory Info function found in the File IO>>Advanced palette.

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 4 of 4
(2,830 Views)