As far as know in the end of all files, specially text files, there is a Hex code for EOF or NULL character. And when we want to write a program and read the contents of a text file, we send the read function until we receive that EOF hexcode.
My question : I downloaded some tools to see a hex view of a text file. but I can't see any hex code for EOF(End Of File/NULL) or EOT(End Of Text)
ASCII/Hex code tables :
This is output of Hex viewer tools:
Note : My input file is a text file that its content is "Where is hex code of "EOF"?"
Appreciate your time and consideration.
EOF
is a symbolic value provided by the library to notify you, the programmer, that the file end has been reached. The operating system doesn't need to know where the file ends (or rather it doesn't store this information in the file itself). – Dorettadorettetype whatever.txt
it will break when it hits ^Z if the file happens to contain one, but this only applies to the Windows command line. io libraries for programming should happily parse it as just another character. – Dorettadorette\n
) just like every other line in the file. These are merely conventions for some tools and systems, not requirements, so expecting a specific character isn't going to be reliable. – Niggerhead