470,833 Members | 1,576 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

Make BufferedReader.readLine() not consider \r EOL

Hi. I have a file using \n as line-separator. There are also
occurrences of \r in the file, but I don't want the
BufferedReader.readLine() to consider those as EOL.

Apart from stripping all \r from the file before processing it, what
good options are there? Do I have to inspect the data char-by-char, or
is there a better way?

Thanks,

Morten
Jul 17 '05 #1
1 4580

"Morten" <us****@kikobu.com> wrote in message
news:75**************************@posting.google.c om...
Hi. I have a file using \n as line-separator. There are also
occurrences of \r in the file, but I don't want the
BufferedReader.readLine() to consider those as EOL.

Apart from stripping all \r from the file before processing it, what
good options are there? Do I have to inspect the data char-by-char, or
is there a better way?

Thanks,

Morten


Since that is a non-standard interpretation of what a "line" is you will
have to group characters into lines yourself.

Silvio Bierman
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Dr.Kadzija | last post: by
1 post views Thread by Jian Qiu | last post: by
2 posts views Thread by Grant Edwards | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.