Extract reading file to string