jQuery in Action, 3rd edition
The moose likes I/O and Streams and the fly likes creating text file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "creating text file" Watch "creating text file" New topic
Author

creating text file

bagaria kushal
Greenhorn

Joined: Mar 29, 2011
Posts: 19
hello everyone,


I need to create a text file in which i have to write a pretty much large amount amount of data.
So please suggest me the best method to this which is fast and at the same time consistent also.
Thanks
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 4109
    
  19

Hi Bagaria, welcome to CodeRanch.

You can simply use a BufferedWriter on top of a FileWriter.

The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating text file
 
It's not a secret anymore!