in reply to Re^3: Monitoring directory for new files
in thread Monitoring directory for new files

You are mistaken. Tested on Win and Linux.

It stops reading when it reaches the current EOF, saying that it reached EOF. It doesn't matter that some process still has an open file handle to the file.

If it was a pipe or socket, it would block as you describe.

  • Comment on Re^4: Monitoring directory for new files