This example will demonstrate how you can lock a file for writing on Windows. This is useful especially if your application involves of multiple process and each process will access to the same file simultaneously. The LockFile function locks the file for exclusive access by the calling process only.  Once it finish its writing process......

[ Click to Continue ]