accessing a file
On Linux, how can I make sure that my pr开发者_如何学编程ogram is the only one accessing a file?
I am not sure, but I believe you are referring to file locking. See this and this and don't forget this. Your display name is gcc but if you are doing this on windows, see LockFileEx.
精彩评论