08-18-2021 09:19 AM
Hi Guys ,
actually i am new with labview and have to do a project for education , so i have problem now that is i cant find a solltion for select a line in a file and put in table and go to another file and do the same thing until i finish the folder and in each file i just have to find one line
Solved! Go to Solution.
08-18-2021 09:25 AM
You can use List Folder to get the list of files in a folder. You can then use a FOR loop to process each file. After that, we need some more details. What is the format of the files? How do you find the line you care about? What is this table you are putting data into?
But, more importantly, what have you tried so far? We are not here to do your work for you. You have to at least show that you are trying.
08-18-2021 09:32 AM
i want to select the line that have |M| and not the first one and extract it into an araay or table or any thing the user can see it clearly
08-18-2021 09:35 AM
I forget somthing i just want the first one which have |M| the others dosen't matter and the first line is not included
08-18-2021 10:14 AM
For Regular Expressions, '|' is a special character (acts as an OR). So instead of Match Regular Expression, use Match Pattern.
08-19-2021 09:38 AM
Actually i dont know if my code gonna give me the result i want .
08-19-2021 09:43 AM
@2dom wrote:
Actually i dont know if my code gonna give me the result i want .
You're pretty close. I'd use Read text file with Read Lines-setting (r-click icon to set it) to get all rows as an array, that makes it easy to use a For loop instead. Then use Match Pattern as mentioned and you should be home free.