Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Getting txt from the web

  Asked By: Dora    Date: Nov 26    Category: Java    Views: 733

I am trying to copy the text held in a text file on a
website into another text file held on my computer. I tried using
FileReader but this will not except an URL as part of the
Any help would be great.



1 Answer Found

Answer #1    Answered By: Benny Torres     Answered On: Nov 26

Two ideas of attack ... Look at the URL class in the Java API ... or you
can make a Socket connection to port 80 and stream the results :)

Didn't find what you were looking for? Find more on Getting txt from the web Or get search suggestion and latest updates.