![]() |
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:
I was wondering what method I can use to read a message from a text file, and preserve the text? For example, if the contents I'm reading is:
I want the read the contents exactly like that and store it in a string (preferrably), or a character array. I normally use BufferedReader's readLine method to read from text files, but that method skips newline and carriage return characters (which, as you can see, I want to keep in this case). Thanks in advance for the help. Hiran Replies:
|
Sponsored Links
|