I'm reading a binary file a character at a time and looking for the end-of-file marker so I know when to stop reading but the read terminates before the entire file is read. There seems to be an eof marker in the file that is not at the end of the file. CharToNum(EOF) returns a 4 which could appear at places other than the end of the file, right? Is the following correct? repeat forever read from file sourcefile for 1 character if the result is "eof" then exit repeat put it into var1 end repeat Thanks, Jim Parker Archives: http://www.mail-archive.com/metacard%40lists.best.com/ Info: http://www.xworlds.com/metacard/mailinglist.htm Please send bug reports to <[EMAIL PROTECTED]>, not this list.