Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

10Mb of text...help is needed  RSS feed

 
jonathan mozes
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm currently constrcuting a really big document something like 10Mb (couple of millions of chars) ,the data comes from a database , and i append the Strings to a StringBuffer , later on i save it as a file , the problem is that after 5000 records (half of what i have ) there's a RunTimeException cause of the StringBuffer's length , i can come around that using couple of StringBuffers, but i was wondering whether there's a stream that can hold that amount of chars.
thank in advance
Jonathan Mozes
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!