Can a file that exists outside of the MetaTrader folders be opened?

 

Can a file that exists outside of the MetaTrader folders be opened? 

e.g. "A:\abc.txt"

 
  1. Not without using DLL calls.
  2. For security reasons, work with files is strictly controlled in the MQL4 language. Files with which file operations are conducted using MQL4 means, cannot be outside the file sandbox.
              FileOpen - File Functions - MQL4 Reference
 

You can do it by creating a hard link to the folder you want to access inside any of the metatrader files folders (if it's for personal use, anything else requires DLLs)

*Edit: junction as William said, not hard link

 
Hard link for a file. Or create a junction (mklink /J) under “«DataFolder»\MQL4\Files”