The function fnFileWrite is used to write a single line of to a file. The configuration of the file is defined in the File IO System Manager.
The Configure tab contains the parameter for the file name:
Parameter Name |
Data type |
Description |
FileName |
string |
The name of the file to read. MetaTrader will only read files in the MT platform "Files" folder, for example: C:\Program Files (x86)\FXCM MetaTrader 4\MQL4\Files |
The Line Data tab contains parameters for the Column Data defined in the File IO System Manager.
For this example, we have added Columns named SymbolName, BidPrice and AskPrice.
Note: There will be no parameters shown if no Columns have been added in the File IO System Manager.
Parameter Name |
Data type |
Description |
SymbolName |
string |
As defined by the user in in the File IO System Manager. |
BidPrice |
double |
As defined by the user in in the File IO System Manager. |
AskPrice |
double |
As defined by the user in in the File IO System Manager. |