import java.net.*;
import java.io.*;
public class UrlOne
{
public static void main(String[] args) throws Exception
{
String inputLine;
String webaddress;
int c;
char tempin;
BufferedReader fin = new BufferedReader(new FileReader("mylist.txt"));
// File outputFile = new File("urltemp.txt");
FileWriter fout = new FileWriter("outputFile");
while( (c = fin.read()) != -1)
{
if(c == "/n")
{ System.out.println(webaddress); }
else
{ webaddress = webaddress + c; }
}
/*
URL yahoo = new URL("http://www.yahoo.com/");
// URL tempurl = new URL("c:\\windows\\desktop\\offlin~!\\soccer\\article.htm");
BufferedReader in = new BufferedReader(
new InputStreamReader(
yahoo.openStream()));
// tempurl.openStream()));
while ((inputLine = in.readLine()) != null)
{
System.out.println(inputLine);
fout.write(inputLine);
}
in.close();
*/
fin.close();
fout.close();
}
}