Syntax to Delete a file

Hi,

I have around 10 DXL script files in C directory inner folder(s), which executes in a row. while executing these scripts the temporary file "tempfile.inc" is created in  "C:\temp" folder. To perform some tests, I want to delete this temporary include file before starting to run these scripts all the time. 

Does it (DXL) have any syntax to delete this temporary file.? Is it possible to delete the files under C: directory with DXL scripting.?

Can anyone post the syntax, if it is available...

 

Thanks,

Praveen.

 

 


praveen_k573 - Thu Jun 26 15:43:25 EDT 2014

Re: Syntax to Delete a file
llandale - Thu Jun 26 16:13:17 EDT 2014

  • string ErrMessage = deleteFile(NameOfFile) 
    

Alternatively your first process can "write" the file which will erase it, while your subsequent processes can "append" the file

-Louie