M.H M.H - 1 year ago 63
Java Question

How to maintain Record of File Opening

I've created text app from java

I have provided an option to the user to have a record of file opening in Recent Documents .

When user open a file ,file open in my program and Recent Document shows the name of that file.

When the app is reopened.Recent Document shows nothing.

I want my app to have a record of that file as well that was opened last time.

How can this be done?

Answer Source

You'll have to have a persistent storage if you want to keep data between sessions. You could use Databases, text files, Properties files etc.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download