Skip to content

Commit

Permalink
Update ch5/02_save_and_load_files_in_appdata.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KscireGamer committed Aug 13, 2015
1 parent 039c494 commit 6fcc180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ch5/02_save_and_load_files_in_appdata.md
@@ -1,6 +1,6 @@
# 5.2 將應用程式的內容儲存在檔案中

有些應用程式可能會需要將程式中的內容儲存下來,之後程式可以再根據需要把內容再讀取出來。像我們在 [4.2 改良的 BMI 計算機](../ch4/02_lucky_draw_app.md)[5.1 讀取應用程式套件內檔案的內容](01_load_file_from_app_package.md) 提到的抽獎程式,也可以在中獎名單抽出後儲存下來,以免不小心關掉應用程式後名單就不見了。
有些應用程式可能會需要將程式中的內容儲存下來,之後程式可以再根據需要把內容再讀取出來。像我們在 [4.2 製作抽獎程式](../ch4/02_lucky_draw_app.md)[5.1 讀取應用程式套件內檔案的內容](01_load_file_from_app_package.md) 提到的抽獎程式,也可以在中獎名單抽出後儲存下來,以免不小心關掉應用程式後名單就不見了。

所以在這則食譜中,我們會把抽獎程式加入儲存名單的功能,以及重新開啟應用程式時能檢查檔案是否存在,再讀取出來。

Expand All @@ -12,7 +12,7 @@
## 事前準備

* 完成 [4.2 改良的 BMI 計算機](../ch4/01_bmi_calculator_using_data_binding.md)[5.1 讀取應用程式套件內檔案的內容](01_load_file_from_app_package.md)的功能。
* 完成 [4.2 製作抽獎程式](../ch4/02_lucky_draw_app.md)[5.1 讀取應用程式套件內檔案的內容](01_load_file_from_app_package.md)的功能。

## 操作步驟

Expand Down

0 comments on commit 6fcc180

Please sign in to comment.