handle err of ReadFile