Can not open txt file and keep report error 5002

 

Dear, 

Anyone can support, I can not find the problem. It keep reporting error 5002


void ReadTextFileAndExecuteSignals() {
//--- correct way of working in the "file sandbox" 
   ResetLastError(); 
   int filehandle=FileOpen("D://GBPUSD.txt",FILE_TXT); 
   if(filehandle!=INVALID_HANDLE) 
     { 
      FileWrite(filehandle,TimeCurrent(),Symbol(), Period()); 
      FileClose(filehandle); 
      Print("FileOpen OK"); 
      
      
          // Đọc dữ liệu từ file và thực hiện tương ứng với tín hiệu
    string line;
    while (!FileIsEnding(filehandle)) {
        
        line = FileReadString(filehandle);
        if (StringLen(line) > 0) {
            // Kiểm tra tín hiệu
            if (StringFind(line, "BUY") >= 0) {
                
                OpenStartBuyOrders();
            } else if (StringFind(line, "SELL") >= 0) {
               
              
              
                OpenStartSellOrders();
            }
        }
    }
     } 
   else Print("Operation FileOpen failed, error ",GetLastError()); 
    

    // Đóng file
    FileClose(filehandle);
}
 
Path has to be a relative address. The path you specified won't work.