We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi all,
I'm using the Keil file system on STR912 to write in SD card. My program is very simply : I create file with "fopen" function then I write in SD using "fwrite" function and finally I close the file with "fclose" function
I would to know how can I set the file attribute to read-only mode.
Thanks in advance.
Best regards, JM
Hi
please be more specific. What file system ? what disk type? In case of a FAT, see article "FAT" on wikipedia en.wikipedia.org/.../File_Allocation_Table and look for directory entry
hth u.B.
This doesn't have anything with the wikipedia or the definition of the FAT file system to do.
The OP just wants to know if Keil has any function call that can control the attribute flags, similar to the attrib command-line tool, or the _chmod() function available in Windows.
You're right, just skipped the "Keil flash" .. sorry