Example Code

Find Number of End of Line (EOL) Characters in a Text File

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This code reads in a text file and finds the number of End of Line (EOL) characters within it.


Description: 

This code reads in a text file and finds the number of End of Line (EOL) characters within it, effectively returning the number of lines - 1.


Requirements: LabVIEW 2012 (or compatible).


Steps to Implement or Execute Code:
1. Run the VI.
2. Choose txt-file.
3. Write down the result.


 

Additional Information or References:

 

undefined

 

undefined


**This document has been updated to meet the current required format for the NI Code Exchange.** 

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.