LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Replace file content

Hi,

i want to read a serial number from a text file, increment it and then save it again.
And this with low level file I/O.

How could I implement this?

 

0 Kudos
Message 1 of 3
(376 Views)

The shipping example is a good starting point.

C:\Program Files (x86)\National Instruments\LabVIEW 20xx\examples\File IO\Text (ASCII)

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 3
(371 Views)

You can set the size to zero to clear the file before writing.

 

If the serial number always has the same count of characters, you could just set the file position to the beginning before writing and thus overwrite it.

Message 3 of 3
(324 Views)