0
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.
4On your hard disk? – DavidPostill – 2017-04-16T17:50:44.907
RAM is not the opposite of ROM (ROM can be RAM). – gronostaj – 2017-04-16T17:54:10.950
ROM is used only for firmware--very low-level instructions for interfacing with the hardware or initiating starting the computer. RAM is used for active temporary storage. Anything that needs to be preserved is stored on "permanent" media like a hard disk or SSD or externally on a flash drive or optical disk (or other external drive). Tablets often use flash memory internally rather than a drive for permanent storage. – fixer1234 – 2017-04-16T18:26:17.640
When you save you save on Hard Disk, Like you said when you run a program or edit something it is done in RAM (temporary) when you Turn off the Laptop it is gone, ROM is like what fixer1234 said for booting and low-level instructions not for running programs – yass – 2017-04-16T18:53:59.160