solve problem reading a file