RAM is where all data, files and programs are stored while they're being used. When a computer boots up, the operating system is copied from secondary storage to RAM. When software applications, documents and files are opened, they are copied from secondar storage to RAM. They stay in RAM until the files or applications are closed.