Downloading a CSV file from MQL5 EA

Hi All,

Kindly let me know if it is possible to write an MQL5 code to automate this task.

A. Download csv File from

B. Save or replace it in \MQL5\Files folder

I have tried with #import “shell32.dll” and #import “wininet.dll” but seems not able code them to work properly.

Any working code example is appreciated. Thank you.