From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Real-Time Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
MaxiBarac

search line by line into text file

Status: Completed

Hi everyone , thanks for your time .

 

I have a text file with a table of data (text file example attached) , this file will be increasing with time , perhaps 500 lines per year , i want to read this file from labview and to be able to search a name (first field of the text file) and the data in the same line belongs to that name  , the idea is to read line by line and if the first field matches the name searched , then get all the data in that line as a string , the data types don't matter .

As well i have to be able to delete a complete line of the same text file if the name matches the one searched .

Any idea will be agreat , Thank you very much for your help and time !

 

3 Comments
MaxiBarac
Member

sorry i forgot to add the text file example , here it is .

 

 

Maxi    Barac    24
Julio    Perez    38    
Nico    Barac    45
Pedro    Roberto    32    
Melisa    Pereyra    22    
Gladys    Hidalgo    15
Rodrigo    Hidalgo    16
Adrian    Hidalgo    19
Lucio    Hidalgo    54
Nancy    Rodriguez    63
Micael    Barac    78
Mario    Barac    98
Sonia    Werber    86
Jose    Barac    87
Kevin    Barac    59

 

Deborah_B
Active Participant

Hi MaxiBarac,

 

This forum is for posting new LabVIEW Real-Time feature ideas. Please repost this request and text file example in the generic LabVIEW Discussion Forum board, where you will get a lot more eyes on your request and our application engineering support team will be notified to help out.

 

Thank you!

Deborah Burke
NI Hardware and Drivers Product Manager
Certified LabVIEW Architect
Deborah_B
Active Participant
Status changed to: Completed
 
Deborah Burke
NI Hardware and Drivers Product Manager
Certified LabVIEW Architect