Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File IO - BufferedWriter/FileWriter

 
O. Ziggy
Ranch Hand
Posts: 430
Android Debian VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote the following test:



The output of the above program is



Any idea why there is a big gap on the output? I have a feeling it is to do with fact that i declared char as 50000 but i cant see how that would have caused it as it was used for reading not writing.

Thanks
 
Ralph Cook
Ranch Hand
Posts: 479
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, at line 32 you have



where 'c' is your 50k buffer. Maybe it has something to do with that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic