NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

read first line of an textfile

Hello,

i wanna read the first line of a textfile. The textfile only contains one line wit an id like 00017H5.
How can i import these id in my Result?

Sincerely Stefan Bölsterli
0 Kudos
Message 1 of 4
(3,441 Views)
Hi,

you can write a simple LV vi to read the text file. You can pass the file path to the LV vi which can read and gives the data out as string. You can save the data into any container which you use for your report creation.

Thanks
Sasi
0 Kudos
Message 2 of 4
(3,436 Views)
Hi, Also, you have a possibility to use the 'File System Object' without a source code.
The example is attached. Hope this helps you. Br,Sergei
"Only a life lived in the service to others is worth living..." - Albert Einstein
Message 3 of 4
(3,433 Views)
Hi,

the FileObj is really a good thing. Now it works fine, and i put the read id with modifiReportHeader below my header.

Thanks Stefan Bölsterli
0 Kudos
Message 4 of 4
(3,425 Views)