-1

I'm currently making a word processor in Java and one the functions it should have is a file backup and history.

I want to be able to backup text to a text file if the program crashes and display a history of recently opened text files.

I've tried to research the problem but I couldn't find anything useful. Could someone point me the right direction so I can try and figure this out.

4

1 回答 1

2

好吧,只需定期将当前编辑状态的备份保存到某个备份文件中,间隔越大,您在崩溃时松动的工作就越多。

对于历史,只需将最近打开的文件保存在某个配置文件中。

于 2016-04-06T13:06:18.630 回答