Android-文件讀寫[openFileInput、openFileOutput]

通過Android的openFileInput、openFileOutput來獲取一個文件輸入輸出流,從而實現寫入/讀取文件。主界面只有一個EditText,其中的內容在活動銷燬時會自動保存到文件。 主佈局文件: <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:and
相關文章
相關標籤/搜索