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(); } }
Java問題,為什么會報IOExecption?。?/h1>
qq_童化金_dwxHIS
2019-03-13 21:02:58
qq_童化金_dwxHIS
2019-03-13 21:02:58