How to read text files,not .csv?

 
I dont know how to create expert in MT4 that can read text file that will have 2 positions:
1.Some text:
" Position details
2189-2570-?-?-? Flat "("2189,2570, and Flat" could change for example:"1789,1890,Inverted Flat"
I need to get 2189 and 2570 at expert only.
2.Some text:
" Position details"
Do nothing.

Please,HELP?
 
Though the help file mentions onl csv or bin as the file types, I'm pretty sure that CSV mode is able to read the text files as well...try the FileOpen command help and then FileReadString, FileReadInteger functions...
 
Though the help file mentions onl csv or bin as the file types, I'm pretty sure that CSV mode is able to read the text files as well...try the FileOpen command help and then FileReadString, FileReadInteger functions...



Can you make for me EA using the text above(1 & 2 variant)?Not for free.
 
:) Well, it is available for free on MQL4 website...here is the link...

https://docs.mql4.com/

If there is any problem, let me know...

PS: I myself am a newbie in MQL, so I do get stuck quite often... ;)