Read at least min and at most max characters and append them to out
number of characters appended
Read a string at last min and at most max characters length