A file represents a sequence of bytes, does not matter if it is a text file or binary file.
C programming language provides access on high level functions as well as low level (OS level) calls to handle file on your storage devices.
Depending upon the way file is opened for processing, a file is classified into text and binary file.
If a large amount of numerical data it to be stored, text mode will be insufficient. In such case binary file is used