Read Line from File (SD)
Ofir Levi
Aug-3rd, 2021 13:42

In some cases you wish to read data from a txt/csv file.

Using the ladder element "Read Line From File" you can read line (ends with CR+LF) into a buffer. Then you can parse the data and use it for the application requirements.

Attached is an example that demonstrate the use of Read Line From File function.
The function reads lines from text file (txt) that stored in the SD card.
In example each row contains 5 basic values regarding student information:
- First Name
- Last Name
- Grade
- Gender ( 1-Male, 0-Female)

Was this article helpful?
0 out of 1 found this helpful