There is a character to control the end of the file (in the ASCII character its CTRL + Z or 26 or 0x1A is specified), but in fact it is not needed to indicate the end of the file, since OSes released in the 80s, All modern OSs store the file size as metadata in the directory structure (the exact format depends on the file system), and high-level file access functions will check the file size to determine when to tell EOF to you, the programmer.
, ( , NL ↔ CRLF), EOF. , .