Data (information) is stored in computers as-
Data (information) is stored in computers as Files.
At the core of the computer is the central processing unit or CPU, the source of control that runs all programs and instructions. In order to function, computers use two types of memory: primary and secondary. The main storage is the primary memory, and data and programs are stored in secondary memory.
Data is stored as lots of binary numbers, by magnetism, electronics or optics. ... The computer's operating system, for example, contains instructions for organizing data into files and folders, managing temporary data storage, and sending data to application programs and devices such as printers.
Magnetic storage is commonly used on the hard disc drives found on most computers. Information is stored using positive and negative magnetic charges to correspond with the 1s and 0s noted above. Optical discs like CDs and DVDs store information as binary code that can be read by an optical sensor in a disc drive.