Rockbox Development > Starting Development and Compiling
Writing to a file, will not create new line.
Jazz00006:
--- Quote from: bluebrother on October 16, 2006, 06:19:30 PM ---
--- Quote from: Jazz00006 on October 15, 2006, 07:01:26 PM ---nope, that still gives me continous text,
heres a sample of what i get from it.
--- End quote ---
You are using read_line. From the comments of the read_line function (in apps/misc.c) you can find that all line ending characters are stripped. So you either need to read the lines a different way or add a line ending character after each line you wrote.
--- End quote ---
I think i understand what you mean, so...
how would i add a line ending char to each line i write then?
LinusN:
Use fdprintf() and add the newline to the format string:
--- Code: ---rb->fdprintf(fd, "%s\n", buffer);
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version