Quote:
Originally posted by Triple__J
Is there a way that I can get this to show up on a web page? The File that is writen
import java.io.*;
public class Copy {
public static void main(String[] args) throws IOException {
File inputFile = new File("any.txt");
File outputFile = new File("new.txt");
FileReader in = new FileReader(inputFile);
FileWriter out = new FileWriter(outputFile);
int c;
while ((c = in.read()) != -1)
out.write(c);
in.close();
out.close();
}
}
You need a any.txt
Thanks if you have any ideas that would be cool
:cool:
The code itelf is pretty simple, but you will have to do some setup. You need to set up a web server and a servlet engine. From there, you can create a jsp and do very similar code to show the page.