Convert lexer to read using fileio.[ch] functions (thanks, Solaris!).