javafilehistoryword-processorbackups

An automatic file history and backup for a word processor


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.


Solution

  • Well, just regularly save a backup of the current editing state to some backup file, the greater the interval the more work you loose on crash.

    And for history, just save the recently opened files in some configuration file.