File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes How to read lines from a text file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to read lines from a text file" Watch "How to read lines from a text file" New topic

How to read lines from a text file

John Ray Allen
Ranch Hand

Joined: Jan 06, 2005
Posts: 50
I am new into java guys..i just want to know if how could i read lines and get string/s from a textfile then write it on a certain application lets say MSExcel..coz i want to sort it by columns...thanks
Marcus Laubli
Ranch Hand

Joined: Dec 24, 2004
Posts: 116
Ray, check this out.

It's a great example. Here's how I found it. I went to google and typed in Java readline textfile, and voila!
[ January 26, 2005: Message edited by: Marcus Laubli ]

Marcus L´┐Żubli, SCJP 1.4, CLP 5.0, SCWCD 1.4 (preparing)
I agree. Here's the link:
subject: How to read lines from a text file
Similar Threads
do {} while statement illegal start of type
read blocks of lines from file
to read lines inside brackets
Read input from command line
randomly reading from the stream ??