I am looking for a simple function which is able to read a text or binary file from the internet into a string
variable.
It´s unbelievable that I could not find anything in the web, just low level descriptions of all the WinInet
functions and useless samples, that do not work at all, at the MQL
-forums.
What I need is a function like:
string buffer = ReadTextFileFromWeb( "www.myurl.net/textfile.txt" );
No more, no less. I am not very familiar with internet programming stuff at all, but I am sure there is anybody out there who is able to present the reason just like that.
The code will be used in MQL4
/MQL5
. I know that there is already a WebRequest()
function which works, but it is restricted to expert advisors and cannot be used in Custom Indicator
type of code.
I need this solution to load data into a custom indicator.