read file may has '\0'

read data from file to string need set size