Triple__J
04-10-2002, 04:46 PM
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:
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: