Beginner C/C++

Moderators: None (Apply to moderate this forum)
Number of threads: 5430
Number of posts: 16951

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
how to set read only attribute for text file in C Posted by bignick270 on 6 Jan 2010 at 11:17 AM
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.
Report
This post has been deleted. Posted by STRUGGLE on 9 Jan 2010 at 4:14 PM
This post has been deleted.
Report
Re: how to set read only attribute for text file in C Posted by AsmGuru62 on 11 Jan 2010 at 5:27 AM
Always specify which compiler are you using. For Windows you can even use the Turbo C.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.