![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Now this gives me some trouble, because i want to read one line (with readLine()) and subsequentially start to read a file over the InputStream. Unfortunately, BufferedReader uses a fixed-size buffer. To read just one line from the underlying stream, do something like this:
This example assumes that the EOL character will always be \n. There is a little more to it otherwise.
Replies: |
Sponsored Links
|