Block/Unblock a File ".dat"

gonzy1981gonzy1981 Member Posts: 156
Hi
I need to block a file while i'm reading it. After i have to unblock it.
Please do you know to do it?
Thanks

Comments

  • garakgarak Member Posts: 3,263
    if you create a Variable of type "File" and then set the Writemode, no other program can handle your file.
    FileVar.WRITEMODE(true);
    

    Regards
    Do you make it right, it works too!
  • krikikriki Member, Moderator Posts: 9,110
    And if you are reading the file with a dataport, it is blocked anyway.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.