aspose file tools*
The moose likes I/O and Streams and the fly likes PrintWriter writing not more than 1050000 lines Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "PrintWriter writing not more than 1050000 lines" Watch "PrintWriter writing not more than 1050000 lines" New topic
Author

PrintWriter writing not more than 1050000 lines

Jiggi Piggi
Greenhorn

Joined: Jun 30, 2009
Posts: 3
Hi

I have a program which is supposed to write huge data to a file. However when I open the output file, I can find only 105000 lines. There were no exception during the execution. Here is my code:
Gamini Sirisena
Ranch Hand

Joined: Aug 05, 2008
Posts: 347
You seem to be writing exactly half of your requirement.
See if that gives a clue..
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19720
    
  20

See how many times you call i++ in your loop.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: PrintWriter writing not more than 1050000 lines