File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Is there an efficient way to read a text file into a string? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Is there an efficient way to read a text file into a string?

Tong Chen
Ranch Hand

Joined: Apr 26, 2002
Posts: 1011
Hi,
Is there an efficient way to read a text file into a string? or anybody can give me a sample code?
Thanks,


Tong Chen (Seattle USA)<br />SCJP,SCWCD,SCDJWS,IBM XML,MCP.NET,MCAD.NET,MCSD.NET
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Please don't post the same question in multiple forums - it just wastes time later when people see a question but don't realize it's already been answered elsewhere. Post replies here please. Thanks.
[ December 13, 2002: Message edited by: Jim Yingst ]

"I'm not back." - Bill Harding, Twister
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there an efficient way to read a text file into a string?