reads file successfully