How to detect CLOSE Write dcm with DGATE ?

  • Hi,


    i'm using file notifier (inotify) to detect new event in receiving dcm file in dgate.
    What i see with it, is that when dgate receive a file it makes a "create" and "modify" events.


    Is there any system to be sure the file is "closed written" by dgate in order to use it ???


    Generally when a file is written the event "write" is made (by the fwrite or fclose function).


    Thanks for any idea....

  • Hi,


    For this problem I generaly try to open a file in "ab" (append binary mode). This fails as long as the file is being created. Once it succeeds close it again and you can safely open it as "rb" (read mode).


    Marcel

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!