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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 19538
    
  16

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PrintWriter writing not more than 1050000 lines
 
Similar Threads
Need help with Exceptions
Use of File Class...
java.sql.SQLException: Exhausted Resultset
checking runtime errors
Reg PrintWriter