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(); } }
添加回答
举报
0/150
提交
取消