@Someprogrammerdude: the case of ^Z in Windows is a pitiful reminder of MS/DOS' origins as a clone of CP/M whose file system did not store the byte length of files but only the number of sectors. A ^Z in the last sector was interpreted as an end of file marker for text files, which the library had to test explicitly. The MS/DOS file system always had a byte length field (initially 24 bits, then 32 bits) hence never needed the ^Z hack. Support for it could have removed decades ago, as well as the obsolete CR LF end of line sequences, but they continue to plague programmers lifes to this day. —
chqrlie 48 secs ago