Rockbox Development > Starting Development and Compiling
can i read file from my plugin??
mschneider:
How do you use the read function to read multiple lines from a file?
saratoga:
--- Quote from: mschneider on June 26, 2008, 09:27:03 PM ---How do you use the read function to read multiple lines from a file?
--- End quote ---
Read in characters and test them to see if they're '\n', count the new lines as you go until you've read however many lines you wanted.
mschneider:
So does read_line read to the first newline or the whole file?
EDIT: On second thought, what I would like to know is: Is there a function to read files character by character?
gnu:
Yes: rb->read().
Navigation
[0] Message Index
[*] Previous page
Go to full version