question about FileDelete();

 

hi everyone, i want to delete the file in sub directory ...\Files\dir\testInDir.csv

FileDelete("dir\testInDir.csv"); // not working
 
FileDelete("testInFiles.csv"); // it's working

however, It is not working and i can't find where is the bug...

 
FileDelete("dir\testInDir.csv"); // not working

You are trying to delete dir<TAB>estInDir.csv which does not exist.

Any special character constants can be written in a string, if the backslash character (\) is typed before them.
          Language Basics / Data Types / String Type - Reference on algorithmic/automated trading language for MetaTrader 5
 
whroeder1:

You are trying to delete dir<TAB>estInDir.csv which does not exist.


it works! thx alot !