how to set read only attribute for text file in C

Is there a simple way to make a text file read only in standard C (not C++) in windows? By the way the program I am making is a cmd prompt style program, no window gui's or window api's

I know how to write to and read from text files in C but changing the attributes would be useful in my application.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!