This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Write bufferedreader to a file

 
Sean K. Smith
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have some data that is being output from a bufferedreader reading a URL to grab the HTML code. Right now my program just prints out the code but I want to put this into an HTML file. Any suggestions? Below is my code:
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What part are you having trouble with? Clearly you know how to use the I/O classes to read data, so you should be able to figure out how to use them to write to a File. Clearly you know how to read a line and then write it, and repeat in a loop.

So where are you getting stuck?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic