I know that there are two main types of memory (RAM and ROM), data on ram is lost when there is power off, but on rom data is still kept but can't be removed and can only be read.
So where is a text file's data stored when I save it and turn off the laptop and edit it when I turn it on the next time?
since it's both "not lost" and "editable" (both ram and rom).
Can somebody help me with finding out about this?
there are two possible ways i'm thinking about:
The data is saved on rom, when I want it it's fetched by CPU, I edit it, then it is stored as a new file on RAM again (next time it's fetched again).
there is memory types like EPROM on which data can be erased and rewritten.