Computers store data as files.
A file is a collection of data that is stored on a computer's storage device, such as a hard drive or solid-state drive. Files can contain many different types of data, such as text, images, videos, and program code.
Files are organized into folders or directories, which are used to group related files together. Folders can contain files, as well as other folders, creating a hierarchical structure for organizing and accessing data.
Documents, on the other hand, are a specific type of file that contain text, such as a word processing document, spreadsheet, or presentation. Documents are typically created and edited using specialized software, such as Microsoft Word, Excel, or PowerPoint.
In summary, computers store data as files, which can be organized into folders or directories for easier management and access. While documents are a specific type of file, files can contain many different types of data beyond just text documents.