Click here to Skip to main content
       

Java

 
AnswerRe: am a beginner [modified] PinmemberApril Fans16-Jan-13 19:46 
GeneralRe: am a beginner PinmvpRichard MacCutchan16-Jan-13 23:40 
Questionhelp me please Pinmemberterzasek13-Jan-13 17:10 
AnswerRe: help me please PinmvpRichard MacCutchan13-Jan-13 22:23 
AnswerRe: help me please PinmemberAvidwan14-Jan-13 4:41 
GeneralRe: help me please PinmvpRichard MacCutchan14-Jan-13 6:22 
GeneralRe: help me please Pinmembercubocik16-Jan-13 0:40 
QuestionWebpage saver -- help Pinmembercubocik13-Jan-13 7:38 
Hey im kind new in this , but I have coded this but It doesn't work...
 
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
 
public class webpagesaver{
public static void main(String[] args) throws IOException{
URLConnection conn = url.openConnection();
conn.connect();
InputStream is = conn.getInputStream();
String saveFile = "PaginaCopiada.html"; //name of SaveFile
String location = "http://www.sapo.pt"; //ask website
URL url = new URL(location);
BufferedWriter out = new BufferedWriter(new FileWriter(saveFile));
BufferedReader in = new BufferedReader(new InputStreamReader(is));
String l = out.readLine();
while(l!=null){
out.write(l);
out.newLine();
}
in.close();
out.close();
 
}
}
The objective is : Put website link and Save all the page..
 
May you help me ?
SuggestionRe: Webpage saver -- help PinmvpRichard MacCutchan13-Jan-13 22:18 
GeneralRe: Webpage saver -- help Pinmembercubocik14-Jan-13 5:51 
GeneralRe: Webpage saver -- help PinmvpRichard MacCutchan14-Jan-13 6:12 
GeneralRe: Webpage saver -- help Pinmembercubocik14-Jan-13 6:34 
GeneralRe: Webpage saver -- help Pinmembercubocik14-Jan-13 6:39 
GeneralRe: Webpage saver -- help PinmvpRichard MacCutchan14-Jan-13 6:55 
GeneralRe: Webpage saver -- help Pinmembercubocik14-Jan-13 7:55 
GeneralRe: Webpage saver -- help PinmvpRichard MacCutchan14-Jan-13 22:02 
GeneralRe: Webpage saver -- help Pinmembercubocik16-Jan-13 0:38 
GeneralRe: Webpage saver -- help PinmvpRichard MacCutchan16-Jan-13 0:51 
QuestionHow to Record Audio at client Side? PinmemberMrugrajsinh13-Jan-13 7:19 
Questioncode error PinmemberMember 975139812-Jan-13 12:47 
AnswerRe: code error PinmvpRichard MacCutchan12-Jan-13 23:35 
QuestionRegarding Maven and Jenkins PinmembersivaKrishna joga2-Jan-13 22:47 
AnswerRe: Regarding Maven and Jenkins PinmvpRichard MacCutchan3-Jan-13 0:12 
GeneralRe: Regarding Maven and Jenkins PinmembersivaKrishna joga3-Jan-13 0:23 
GeneralRe: Regarding Maven and Jenkins PinmvpRichard MacCutchan3-Jan-13 1:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 17 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid