read data from file may contain '\0'

read data from file to string need set size