This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: How to read lines from a text file
It's not a secret anymore!