> In the underlying C API, (char)255 == (char)-1 == EOF. > Regards, > Malcolm But I think the underlying C API is actually int, and char 255 is a Unicode char. Anyway, I should be able to make some progress on it in the next few days. Thanks Neil