Physical Devices and Logical Files
Unix has a very general view of what a file is: it corresponds to a sequence of bytes with no worries about where the bytes are stored or where they come from.
Magnetic disks or tapes can be thought of as files and so can the keyboard and the console.
No matter what the physical form of a Unix file (real file or device), it is represented in the same way in Unix: by an integer.