Hi,
I want to use File Stream Objects to write some infomation in a txt file.
I need to lock the file when I write,because I don't hope other processes access to it.
But it want to use File Stream Objects to write to the file,
does File Stream provide a function which can lock a file?
Or other function I can use to lock?
From what I see, locking a file is independent from editing the file. You have to use the old FILE pointer approach to do it. More information you can find here: