|
From: <h.r...@gm...> - 2002-09-13 20:21:34
|
> With an experiment with a text editor made with a simple edit control, > I've found some files, like winerror.h, where the text displayed has no > new ines, instead it has a giant line with vertical bars where the > newline should be. I tried write a small program which reads the file > until the second line has begun and returns each character behind the > numeric value, but in the new line it puts in the console the value 10, > which is the usual of the newline. And in other place I found that some > file has value 13 where the newlines are, so now I test for one of them > and change to the other, but that doesn't solve the problem, what it > makes is that all files has a vertical bar where the newline should be, > and I don't find the way to make the program show newline in those > places. > Any idea? > Thanks. this happens if you read a unix style file with a windows style editor. In windows each line ends with Carriage return and Linefeed, in Unix only with Line Feed. With a editor like e.g. TextPad you can read both and convert it. greetings Horst -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net |