Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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


Win a copy of The Software Craftsman this week in the Agile forum!
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
Author

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)
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: How to read lines from a text file