Demo_FileCopy - MetaTrader 5 Script | Trading Script Download - MT4/MT5 Resources
This script demonstrates using the filecopy () function. The contents of this file will be copied to another file. For copying to succeed, the source file must be located in the terminal local folder with the name specified in the "InpSrc" input parameter. The following command can be called to obtain the terminal local folder location terminal information string () function.
Printing format ( "Path of terminal local folder: %s\\Files\\" , terminal information string ( terminal data path ));First, the script will try to display the file contents. If the destination file does not exist, the filecopy () function should be used without the file-rewrite flag. If the target file has been created, the copy success file rewrite flag must be used.
Code:
Attachment download
📎 demo_filecopy.mq5 (3.01 KB)
Source: MQL5 #1611
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •