A new headache:
Is there any way to set the read-only property of a file from within one's program? Or indeed to write to a read only file?
Help would be hugely appreciated
dt
A new headache:
Is there any way to set the read-only property of a file from within one's program? Or indeed to write to a read only file?
Help would be hugely appreciated
dt
"The most important thing about acting is honesty. If you can fake that you've got it made" - George Burns
It is OS specific, as it will be based on the file system and the OS API. You could tell us what OS, etc... you're using, or check yourself at some reference for that OS (MSDN, etc...)
Oh really, well I stumbled across a pretty dirty method using the DOS command ATTRIB and using ::system("attrib -r \"filename.txt\"") etc. I'm using Windows XP and I'm hoping that'll work across all windows platforms.
I can't believe there isnt a method in MFC or something tho..
thx
"The most important thing about acting is honesty. If you can fake that you've got it made" - George Burns
SetFileAttributes()
Don't forget about the requirements:
>> Requires Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95.
gg
brilliant, ty
"The most important thing about acting is honesty. If you can fake that you've got it made" - George Burns