restored Robust I/O functions, polling and file-locking
print sizes read