The only thing I do, is to write the integer-values of an array into a file. That works fine.
Here's a copy of the file:
111 0 0 119 255 255 255 255
But now I want to fill in some carriage returns (say after every third cycle of the loop).
That means 13 (for '\n'). But how to assign the control character?
The write()-method wants a buffer-deskriptor.
So my question is, how to break the lines?
I assume you want a newline i.e. linefeed and not just carriage return (go to beginning of current line). LF "\n" works fine in Symbian, there's no need to use MSDOS style CRLF "\r\n". Depending on the context, you may need to wrap it into a TChar or a descriptor. For example in your code, bufx.Append( TChar( '\n' ) ).
First I have to thank you for trying to help me.
@laa-laa: Itried this too, but I opened my txt-file always with an ascii-editor. And that was the problem...
I only saw special character...
The problem wasn't Symbian, the problem was f***in' windows-standard-editor and my shortsighted brain...
Using CEditableText is a little bit too complex for that process, but also thanks for that hint (maybe it is convenient for later usage).