hello,
 
here is the code to get http page.
you can write it were you want !
 
best regards
 
 
 
 
    //create url object
     InputStream l_urlStream;
     URL l_url = new URL(p_sUrl);
 
    //get a connction
     HttpURLConnection l_connection = (HttpURLConnection) l_url.openConnection();
      l_connection.connect();
//open stream from connection
        l_urlStream = l_connection.getInputStream();
 
     BufferedReader l_reader = new BufferedReader(new InputStreamReader(l_urlStream));
 
      //process lines
      while ((l_sCurrentLine = l_reader.readLine()) != null) {
            file://write line were you want !!!!!
      }
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de cgreen
Envoy� : jeudi 21 d�cembre 2000 10:29
� : Orion-Interest
Objet : How to put a internet page to a file.

Hi,all:
   I want to read a internet page(e:http://www.microsoft.com/) and put the page to a file(e: c:/temp.txt).
   How to do ?
 
Thanks very much!
 
cgreen
  
 

Reply via email to