I want to implement a feature, that when my application crashes it saves the current data to a temporary file so it can be recovered on the next launch like many application do