This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I/O Question

 
Rob Levo
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need example code of reading the contents of a file into a StringBuffer object.
Thanks to anyone who can provide that example for me.
 
Corey McGlone
Ranch Hand
Posts: 3271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This should do the trick. I even added a line to spit the contents back out to the console so that you could see what was in the StringBuffer.

I hope that helps,
Corey
[ April 18, 2002: Message edited by: Corey McGlone ]
 
Rob Levo
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Corey, exactly what I needed!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic