User Name: string filePath = "F:\\F2\\1.txt"; // Path to file
File Write Problem (Error: 5002) - Expert Advisors and Automated Trading - MQL5 programming forum #1-2 (2020)
and FolderDelete using TERMINAL_DATA_PATH - General - MQL5 programming forum (2017)

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
Hello everyone,
Unable to open file:
// Specify absolute path to file
string filePath = "F:\\F2\\1.txt"; // Path to file
int fileHandle;
fileHandle = FileOpen(filePath,FILE_SHARE_READ| FILE_READ);
Error opening file: 5002
What could be the reason?
Thank you!