There Is No Such Thing as a Text File

Last time I took apart PNG, which opens with eight bytes whose entire job is to announce &ldquo;I am a PNG&rdquo;. A text file opens with nothing. No signature, no header, no length field, no version, no metadata. It is bytes, and then it stops. So this post is the opposite of the last one. Instead of walking a structure, we&rsquo;re going to look at what happens when there isn&rsquo;t one. POSIX…