On Sunday 17 February 2008 23:13:03 Carlos E. R. wrote:
The Sunday 2008-02-17 at 20:39 +0100, Anders Johansson wrote:
Out of curiosity, what do you mean by putting EOF at the end?
EOF means End Of File, it means content stops. I wasn't aware that it was possible to "put it" anywhere?
Actually, it is, because EOF is also an ascii character that indicates end of file (for text files). I don't remember now is if is ^Z or ^D in linux, though.
Well, it's ^D, but it's not an ascii character. It is defined as something which can never be read from a file. All ascii characters can be read. There is no character you can write to a file that will cause the file to stop being read because of end-of-file. There is an ascii character 0x03 (end of text) and 0x04 (end of message) but those aren't the same as EOF If you think about it, it's obvious: a binary file doesn't care about ascii encodings. The 127 characters in ascii can occur anywhere in - for example - a JPEG image. It would be disaster if that caused an end-of-file Anders -- Madness takes its toll -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org