package io;
import java.io.*;
class ReaderTest{
public static void main(String[] args)throws Exception{
File fl = new File("1.txt");
//if(!fl.exists())
// fl.createNewFile();
FileOutputStream fos = new FileOutputStream(fl);
OutputStreamWriter osw = new OutputStreamWriter(fos);
BufferedWriter bw = new BufferedWriter(osw);
bw.write(args[0]);
bw.close();
FileInputStream fis = new FileInputStream(fl);
InputStreamReader isr = new InputStreamReader(fis);
BufferedReader br = new BufferedReader(isr);
System.out.println(br.readLine());
br.close();
}
}
请问各位大哥大姐,即使不用注释的语句,也会自动生成一个1.txt的文件。是哪句语句生成的文件,请指教。