I build a string on a unix server and write it then down on a windows maschine. To make a linefeed I use "\r\n" but then the server only adds the unix linefeed "\n". The point is the eol is in hex 0a and I need 0d0a for other programs.
Has anyone an idea to convert the linefeeds before writing it down on the windows maschine?
To convert the string to hex then replace all 0a with 0d0a an convert it back to a string is not the best practise. Has anyone a better solution?
br? I'd thinkBufferedReaderbut obviously that's input, not output...brwas aBufferedWriter.BufferedWriterhas noappendLinemethod. So, again, if you tell us what type thebrin yourbr.appendLine()is, maybe we can help you more.\r\nto a file absolutely writes\r\nto the file, not just\n, even on *nix. You'll need to provide more information.