How Can I Read A Specific Section Of A .txt File?

Updated Jul 4, 2018

Reported In

Software

  • LabVIEW

Issue Details

I have a very large file I am trying to display some information in LabVIEW from. The .txt file is too large to be stored in RAM so I am looking to only display a specific portion of the text on my front panel indicator. Is this possible?

Solution

Yes, this is possible given that you know the offset of characters you need to read from and the character length that you need to read. To do so use the Set File Position to specify the offset bytes  in combination with setting the byte length you require to read in your Read Function.

Additional Information

For more information on how you can implement this please see Read a Text File From an Offset Position Using LabVIEW example.

WAS THIS ARTICLE HELPFUL?

Not Helpful