> For some reason I thought that readline counted the \n at the end of > each line and stopped at each one. Clearly, I was mistaken! That is kind of what the default behaviour does. It doesn't actually count the \n characters but it reads up to and including it. Alan G.