import java.io.*;
public class SimplePrinting {
public static void main(String[] args) {
try {
FileWriter out = new FileWriter("lpt1");
out.write("Hello world");
out.write(0x0c); // CR
out.close();
}
catch (IOException e) {
e.printStackTrace();
}
}
}
public class SimplePrinting {
public static void main(String[] args) {
try {
FileWriter out = new FileWriter("lpt1");
out.write("Hello world");
out.write(0x0c); // CR
out.close();
}
catch (IOException e) {
e.printStackTrace();
}
}
}
你的MAIL是什么,给你发一个例子
那里有我以前回的