Save - restore state

Hello,

There is any possibility to Save State in files which can be organized and restored later according to the needs?
Maybe it is a stupid question - sorry for this!
Thanks in advance!