LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read several text files at a time

Dear all
 
      Read and write one text file is not a problem, but  what confusies me is how to read several text files at one time, in the meanwhile,
 
is it possible to display the name of the text file?
 
For example, assuming I want to load file" cha 1, cha 2 , cha 3, " at one time and show their names, how to hadle with it
 
I have reviewed some files and it is not helpful
0 Kudos
Message 1 of 6
(2,497 Views)

To Make it simple, you can always use multiple file read VI's

And for displaying the text file name, do as shown in this VI attached

0 Kudos
Message 2 of 6
(2,483 Views)
for displaying the file name you can also use the strip path function...
Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 3 of 6
(2,478 Views)
Thank you for replying.
But I do not konw where can I find the multiple file read VI's.
 
In the meanwhile, I download a .llb, it seems good
 
0 Kudos
Message 4 of 6
(2,459 Views)

Hey Barb, the strip file is a better option indeed, sometimes i miss out the obvious. Smiley Wink

Once i had a requirement, where I had used that logic for getting both file name and file type.

Back to dec04009's query, you just have to use multiple 'open, read and close' VI's sequences and assign individual file names to each open file VI.

 

0 Kudos
Message 5 of 6
(2,453 Views)
Either with a 'for' loop like in the lib you have attached, or like this attached VI
 
that's it

Message Edited by devchander on 05-30-2006 05:11 AM

0 Kudos
Message 6 of 6
(2,449 Views)