in reply to Re: Read a line with max length ?
in thread Read a line with max length ?

This seems to do the trick, thanks. I'll be careful now and figure out how to be optimal later. ;)