android中IO流的小總結上

IO流的運用 1,在內存中的讀寫 1>寫入:FileOutputStream fos=this.openFileOutput(文件名,模式); 得到要寫入的數據源String str fos.write(str.toByteArray); fos.flush(); fos.close(); 2>讀取:FileInputStream fis=this.openFileInput(文件名); Byte
相關文章
相關標籤/搜索