sync file reading