Jump to Real's How-to Main page

Check if a file is open from another process

integer li_FileNum
li_FileNum = FileOpen ( "myfile.dat" , LineMode!, Read!, LockReadWrite!)
IF IsNull(liFileNum) THEN
   MessageBox("File is in use!")
END IF

If you find this article useful, consider making a small donation
to show your supportfor this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]