One of the defining features of UNIX and UNIX-like operating systems is that "everything is a file” (This is more correctly written as "everything is a file descriptor or a process”) Documents, directories, links, input and output devices and so on, are all just sinks for or sources of streams of bytes from the point of view of the OS