Demo_FileTell - MetaTrader 5 Script | Trading Script Download - MT4/MT5 Resources
The script opens a text file, analyzes the file for the location of the starting point of a string, and displays the text of the string with random numbers. To receive an array of starting positions of each string in the file, the getStringPosition () function has been written. This function searches for the starting point of a string considering the encoding file type that can be specified in the "InpEncodingType" input parameter.
In addition to using the file tell () function, the script also uses the file getinteger () function to get the encoding type, the file ended () function to define the end of file, and the file find () function to move the position of the carriage return in the file when displaying a string with a random number.
Attachment download
📎 demo_filetell.mq5 (4.02 KB)
📎 file.txt (0.1 KB)
Source: MQL5 #1634
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •