Hello, 801119 here..!<br><br>With my Text program that I am writing for the moment I will give the ability to delete the current file. For the moment I am using.... <br>DeleteFile(FFileName); // FFileName is the Name to be deleted.<br>And there are one more way(that I know) to delete a file that I encountered when<br>I searched the help documents.<br>My short way works aslong as the file is not set to ReadOnly<br>When I read the help files i found this way to change file attributes:<br>extern PACKAGE int __fastcall FileSetAttr(const System::AnsiString FileName, int Attr);<br>First I do not know how to use this on, I tried to call it from an other function<br>FileSetAttr(FFileName, faReadOnly); // is faReadOnly the correct attribute to use in this example<br> to remove ReadOnly from a file??<br>Did not work so well...... How do I make it work??<br>Or is there a better way to change file attributes??