View Single Post
Old 2nd March 2002, 22:35   #4
dbareis
Member
 
Join Date: Apr 2001
Posts: 77
Quote:
Originally posted by kichik


About your comment, I don't really understand what you mean. Do these editors put EOF in the middle of the file? If so, how else can I seek for the EOF?
In the good old days editors added a special EOF character (stupid but true) to files (the reason for the /A /B switches on a copy command), most (all?) programs (including Windows reading autoexec.bat etc) still stop reading at the EOF character.

From memory the EOF character was decimal 26, if I'm wrong then it was 27.

I don'y know how common this would be but I have seen this myself so I know it does happen (I tried to do exactly what your code does).

Bye,
Dennis
dbareis is offline   Reply With Quote