Update filesystem.h

Added restore feature to be able to restore string
Also add feature to write command, if a filename doesn't not exist, it will allow write.