Home
Community
Discussion Forums
Most Active Software Boards
NI TestStand
Topic
NI TestStand
Register
·
Login
·
Help
Community
Category
Board
Documents
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Topic Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
All Forum Topics
Previous Topic
Next Topic
read first line of an textfile
read first line of an textfile
stefan.boelster
li
Member
01-18-2005
04:38 AM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
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)
Reply
Re: read first line of an textfile
SAS
Member
01-18-2005
04:53 AM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
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)
Reply
Re: read first line of an textfile
Sergei
Member
01-18-2005
05:22 AM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
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
File System Object.zip 6 KB
1
Kudo
Message
3
of 4
(3,433 Views)
Reply
Re: read first line of an textfile
stefan.boelster
li
Member
Author
01-18-2005
06:42 AM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
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)
Reply
All Forum Topics
Previous Topic
Next Topic