I'm really new in java. I'm trying to read 8000 URL files and write to a file. It's a kind of combining all files together...not overwritten.
This is the URL of my all files http://www.ifi.unizh.ch/ddis/ph/2006/08/ ...
These files are .owl....and I store all of them in a directory. This is source code java that i wrote...it doesnt work as I want.... In fact, I just dont know how to call the files directly from the URL ... Please advice.
import java.io.*;
public class Test {
public static void main(String[] args) throws IOException {
// create two file references
File inputFile = new File("D:/ANALYSIS.owl");
File outputFile = new File("D:/ProcessHandbook0.owl");
// create two File Streams
FileReader in = new FileReader(inputFile);
FileWriter out = new FileWriter(outputFile);
// read one file and write it out to another
int c;
while ((c = in.read()) != -1)
out.write(c);
// close both files
in.close();
out.close();
}
}