How to read text file line by line?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 5
- Joined: Sun Feb 23, 2014 3:12 am
How to read text file line by line?
What function can arduino UNO read each line in text file on a sd card?
- adafruit_support_bill
- Posts: 88154
- Joined: Sat Feb 07, 2009 10:11 am
Re: How to read text file line by line?
The SD library read() function reads one byte at a time. To read a whole line, you need to allocate a buffer and write code to fill it one character at a time. Here is an example:
http://forum.arduino.cc/index.php/topic,202099.0.html
http://forum.arduino.cc/index.php/topic,202099.0.html
Please be positive and constructive with your questions and comments.