package liaxxi;
import java.io.*;
public class lianxi {
public static void main (String [] args) throws IOException{
File ada=new File(":/","swb.txt");
String sbsb="我是一个练习的是txt";
ada.createNewFile();
FileOutputStream ofo =new FileOutputStream(ada);
ofo.write(sbsb.getBytes());
ofo.close();
FileInputStream fof =new FileInputStream(ada);
int adad=0;
while((adad=fof.read())!=-1) System.out.print((char)adad+"\t");
fof.close();
}
}
qq_童化金_dwxHIS
相关分类