• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java I/O class

 
satyendra tiwari
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


please help me

i need help with a IO java code, I am trying to save java console output [from URL class] to a file in local machine, I am able to get the output need help in saving that file to the local machine

to get the output I did this coding

please reply me ASAP
 
Rob Spoor
Sheriff
Posts: 20822
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Right now you are writing to System.out. All you need to do is use a FileWriter, wrap that into a PrintWriter, and use it to println the lines.

satyendra tiwari wrote:please reply me ASAP

Please EaseUp.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!