AnsweredAssumed Answered

How to jump to next line when writing to a File.

Question asked by Jaime Rodriguez on Jun 23, 2009
Latest reply on Jun 24, 2009 by Carl Norman

Hi, I am writing to a file (.TXT) in a USB flash memory. I can write to the file, however, I dont know how to jump to next line. I have tried this:

 

 

 i = sprintf(buf,"%d-%d-%d  %d:%d  Puerta %d \n",dia, mes, year, hora, minuto, puerta);
  write(fd, buf, i);

 

and some other ways with the same outcome. The outcome is the file with the information I want to write but instead of jumping to next line, a little square appears as the \n.

 

Anyone knows why is this happening or knows how to jump to next line?

 

Thanks in advance.

Outcomes