File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Mar 04, 2008
Mar 04, 2008 18:56:00
I am new at this stuff, so I am trying to learn this
My qustion is how do I Read text line by line and print it as it appears in the given data file
Joined: Aug 31, 2004
Mar 04, 2008 19:27:00
Welcome to JavaRanch!
Take a look at the Scanner class.
If you're having trouble with it, show us what you've tried and where you're stuck.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award."
Joined: Oct 27, 2005
Mar 05, 2008 01:58:00
is another option, as it has a readLine() method. This does strip away the newline characters though, but I believe so does Scanner.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
subject: Java 2
JTextArea getting text with hard returns
Facing Problem with String replaceAll method
Doubt on a jsp file
asp server and java client
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015