What are the historical reasons that "streams" are called FILE in C

140 views Asked by At

The GNU libc manual mentions that there are historical reasons that the data structure representing "streams" is called FILE.

After getting curious i've googled around and tried to look into it but I can't seem to find this fabulous tale.

Any ideas?

1

There are 1 answers

0
R.. GitHub STOP HELPING ICE On BEST ANSWER

While I don't have a citation for this, it's likely that the historical reason for the creation of the term "stream" is standardization of the C language. FILE is the type that was always used with FILE * handles for stdio in C, but in order to express the specification for the stdio interfaces, it's necessary to be able to distinguish between a file (the actual storage object) and the handle for an open file, and "stream" seems to have been the word that was chosen.