read entire file better