handleA = FileOpen(fileA, FILE_READ|FILE_BIN); handleB = FileOpen(fileB, FILE_WRITE|FILE_BIN); while(!FileIsEnding(handleA)){ FileWriteString(handleB, FileReadString(handleA,1) , 1); } FileClose(handleA); FileClose(handleB); FileDelete(HandleA);
There's my idea, clumsy, might work.
string FileReadString( | int handle, int length=0) |
int FileWriteString( | int handle, string value, int length) |
Oh, man. I should rename it to basic question, as there is a function for getting
path in Mql4, so my whole question was unnecessary. Well, actually I've never bumped
into terminal functions. :) Thanks for the help though!
Returns the directory, from which the client terminal was launched.
string TerminalPath( | ) |
I never saw that one either... Could be handy...

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
Does anyone has an idea how it can be possible?
The simple WinAPI functions doesn't seem to work without full pathname. The WinApi functions for getting pathname output pointers to buffers (containing the pathname), and mql4 is incapable of handling pointers.
Is there a workaround in someone's head for this? Or only a custom dll (capable of working with pointers), or separate program could handle this...
Thanks in advance