Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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