From: Sean H. <jal...@ho...> - 2007-05-01 22:56:10
|
On Tue, 01 May 2007 04:39:09 -0600, mikemc <mik...@bt...= m> = wrote: > I am struggling to get to grips with the EOL command. > > As standard I seem to output a file which when i read back in i see wh= at > appears to be double line spacing. If i open the file in vi i see ^M = > chars > at the end of each line. > > How do i get rid of this to give me a regular file? You are getting a regular file; it's just that vi reads in Unix format = (EOL =3D LF). So you need to set your EOL mode. EOL constant SC_EOL_CRLF, SC_EOL_CR, SC_EOL_LF. ConvertEOLs (eolMode) Convert all line endings in the document to one mode. GetEOLMode Retrieve the current end of line mode - one of CRLF, CR, or LF. SetEOLMode (eolMode) Set the current end of line mode. This might also solve your other problem; if not send a small amount of = = code that reproduces the problem. |