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:
-ID
- First Name
- Last Name
- Grade
- Gender ( 1-Male, 0-Female)