Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

PrintWriter writing not more than 1050000 lines  RSS feed

 
Jiggi Piggi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You seem to be writing exactly half of your requirement.
See if that gives a clue..
 
Rob Spoor
Sheriff
Posts: 20893
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See how many times you call i++ in your loop.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!