Hi Jaya, From your question it is not clear what type of data you want to read ( HTML, image, video, audio, or some other type of document, such as a Java class file ). URL home = new URL ("http://www.filename.*"); Object page = home.getContent(); I'm not sure whether this is going to help you. Any way try this out
I personally like to use getClass().getResourceAsStream("datafile") to get an InputStream that I can then use to read the file. The data file needs to be found in the same directory as the class file (or within the jar file the class file is from in the same directory within the jar file). You can put a "/" at the beginning of the data file name if you want to place the data file at the root of the codebase (or the root of the jar file).
David G. Risner<br />Software Engineer<br />California State University, Los Angeles
I didn't like the taste of tongue and it didn't like the taste of me. I will now try this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!