File storage / Flash memory?

If I regularly open a file, write data, close the file - where does Vera store it?

Is it in Flash memory? or Ram?

I’m concerned about saving variables/data during a power cut etc,

tom