By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,032 Members | 825 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,032 IT Pros & Developers. It's quick & easy.

Make BufferedReader.readLine() not consider \r EOL

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a

"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.