05-15-2007 02:05 PM
05-16-2007 12:09 AM - edited 05-16-2007 12:09 AM
Taken from online documentation for OpenFile (File Type parameter):
fileType |
integer |
Specifies whether to treat the data in the file as ASCII or binary. When you perform I/O on a file in binary mode, carriage returns (CR) and linefeeds (LF) receive no special treatment. When you open the file in ASCII mode, each CR/LF combination translates to an LF when reading, and each LF translates to a CR/LF combination when writing |
WriteLine does not need any line feed at the end of the string since it appends the correct line termination itself. Since you are appending a CR/LF at the end of your string, the last LF is translated to a CR/LF thus resulting in what you are seeing. Try adding anything to the string.
Message Edited by Roberto Bozzolo on 05-16-2007 07:10 AM
05-16-2007 08:38 AM
05-16-2007 04:55 PM