Changes between Version 12 and Version 13 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/CFile


Ignore:
Timestamp:
08/23/10 08:45:48 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/CFile

    v12 v13  
    178178
    179179=== DeleteFile ===
    180 
    181 {{{
    182 static bool DeleteFile(std::string& filepath);
    183 static bool DeleteFile(const char* filepath);
     180Deletes a file
     181{{{
     182static bool DeleteFile(const string& strFilename);
     183static bool DeleteFile(const char* pszFilename);
    184184
    185185bool DeleteFile(void);
    186186}}}
    187 
     187==== Parameters ====
     188 * strFilename - string filename to delete
     189 * pszFilename - pointer to null terminated character array filename to delete
     190
     191==== Return value ====
     192Returns true if successful, false if not successful.
     193
     194==== Remarks ====
     195
     196Versions of this fuctions that accept a filename are static so they do not require an CFile object.
     197
     198==== Examples ====
     199
     200{{{
     201string str = "/tmp/tmpfile";
     202CFile::DeleteFile(str);
     203}}}
     204
     205{{{
     206if(CFile::DeleteFile("/tmp/tmpfile") == false)
     207{
     208   DisplayText(0, 0, "Delete file error");
     209}
     210}}}
     211
     212{{{
     213CFile file("/tmp/tmpfile", "w");
     214if(file.IsOpen())
     215{
     216   file.Print("This will not exist very long\r\n");
     217   SleepSeconds(1);
     218   file.Close();
     219   SleepSeconds(1);
     220   file.DeleteFile();
     221}
     222}}}
    188223
    189224=== IsReady ===