File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "creating text file" Watch "creating text file" New topic

creating text file

bagaria kushal

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.
Stephan van Hulst

Joined: Sep 20, 2010
Posts: 3677

Hi Bagaria, welcome to CodeRanch.

You can simply use a BufferedWriter on top of a FileWriter.
I agree. Here's the link:
subject: creating text file