Is there a way of knowing whether a text file is opened by another application?

The question I suppose is clear.
Another application is not mine. It is writing some data into a .txt and I'm trying to read it asynchronous
I guess that you could check the timestamp of the file.
In linux you can use stat()
Topic archived. No new replies allowed.