import java.io.*;
class BufferedWriterDemo
{
public static void main(String[] args) throws IOException
{
String fileName = "F:/newHello.txt";
BufferedWriter out = new BufferedWriter(new FileWriter(fileName));
out.write("Hello!JAVA.");
out.newLine();
out.write("this is my second Method in using BufferedWriter");
out.newLine();
out.close();
}
}
BufferedWriterDemo
最新推荐文章于 2023-03-10 22:49:00 发布