You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi
I need help to figure out what is wrong with my codes like to delete a file and figure out the path.
#import "kernel32.dll"
int CopyFileA(string lpExistingFileName,string lpNewFileName, bool bFailIfExists);
int DeleteFileA(string lpFileName);
#import
...
...
DeleteFileA(D:\\temp\\test.txt");
I have a file in D:\temp\test.txt but the program don't seem to work .
Where did I go wrong?
DeleteFileA(TerminalPath()+"\\MQL4\\files\\test.txt");
I have a file named test.txt in the working folder but same problem, the delete function not working.
Thanks.