in reply to Maximum number of characters

Why not use a read of one byte? That would circumvent the problem and provide a much nicer solution.

Your question has been answered by others already ;-)

Hope this helps, -gjb-