Change ReadFile(...) == 1 to ReadFile(...) != 0