08-02-2013 07:08 AM
hi all
I need to select the text files multiple times and read files one by one
some how i managed to select the one text file and scan the data in the text file
i need to do this for mutiple files at the same time
please help me
Solved! Go to Solution.
08-02-2013 07:17 AM
If you know how to process one file, take that VI, put it inside a loop and pass in an array of file paths.
Mike...
08-02-2013 07:35 AM
Post your work so far. We will take it from that point...
Mathan
08-02-2013 07:43 AM
To be more exact, use a FOR loop with autoindexing turned on for you array of files.
08-02-2013 07:55 AM
gowthamggk wrote:I need to select the text files multiple times and read files one by one
some how i managed to select the one text file and scan the data in the text file
i need to do this for mutiple files at the same time
Great!! You managed to read one file.. Now the same code you might need to repeat in a For loop... Well everyone is suggesting the same and that's the only way (for repetitive work, it needs to be done in a loop).
You also need the array of file paths, and very importantly you need to learn the concept of Auto Indexing.
08-02-2013 09:29 AM
i want to handle mutiple file for this VI
.. this is program for pinging the systems
08-02-2013 09:42 AM
Can u attach your VI? That image is to small to see anything....
08-02-2013 09:43 AM
Post your vi instead of an image.
Mathan
08-03-2013 11:45 AM
i sucessfully reading one text file through this VI
but as like this .. i need for multiple files
also shld read the text line by line
please help me frnds...
08-03-2013 12:58 PM
@gowthamggk wrote:
i sucessfully reading one text file through this VI
but as like this .. i need for multiple files
Why are you not using For loop???
@gowthamggk wrote:
also shld read the text line by line
You can right click the 'Read from Text File' function and select 'Read Lines'. Refer to below code snippet.