- Jun 30, 2000
- 5,885
- 8
- 81
Is there a way to make a file read only in windows in C/C++. I figure I can probably do it with a system call to attrib, but that doesn't seem to be a very clean way to do it.
Basically, I want to create a file, write data to it, close it, make it read only.
Basically, I want to create a file, write data to it, close it, make it read only.