|
-
New at Java
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|