Locking files so they may not be written to while a program is running

Started by
2 comments, last by Mercury 19 years, 3 months ago
Hello, One of my programs requires that the config file stay read only while the program is running. I am curious about the ways to go about it. I'd prefer not to open mutiple handles if all possible. TinyXML doesn't lock files while in use. So if a file is deleted while in use by TinyXML, it kills the app.
Advertisement
I believe this is what you're looking for.
Yes, I found that after rewording my search in Google. Thanks :)

Rating++ for helping anyway :)
Heh, no problem. I remembered it on the back of my mind from when I was using the low-level libraries for something and I had to figure out the name of the function I'd used. Happy coding. [smile]

This topic is closed to new replies.

Advertisement