Aren't you supposed to supply the length of the string?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
In a script I:
Open a binary file [ fHandle = FileOpen( FileName, FILE_BIN | FILE_WRITE ) ],
write several strings [ FileWriteString( fHandle, string ), several times ] and
close the file [ FileClose( fHandle ) ].
I get a message "handle 1 does not exist in FileClose". The file has been written perfectly.
When I move the identical code into an Expert where the code is executed but the Expert continues executing I get the same "handle 1 does not ..." message but the file is inaccessible. The file remains inaccessible until the Expert is terminatede (Removed).
I get the same message for FileFlush.
Any suggestions?
Thanks
RVR