Do you have some concrete performance numbers? Also, how does this behave for a file that has a length divisible by 8 and ends with a backslash followed by a newline in a BCPL comment? (I'm thinking that nextLineIsComment might overshoot the buffer.) Sebastian