|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
|
|
LinkBack | Thread Tools |
|
|
||||
|
||||
|
Quote:
I think you missed FileFlush or you didn't use FileSeek to go to the end of the file! |
|
|
||||
|
||||
|
Quote:
Now it works! Thank you codersguru. Obi Wan. handle=FileOpen(gs_fname, FILE_CSV|FILE_READ, ';'); if (handle<1) { FileClose(handle); handle=FileOpen(gs_fname, FILE_CSV|FILE_READ|FILE_WRITE, ';'); if (handle>0) { FileWrite(handle, gs_fname); FileFlush(handle); } } else { FileClose(handle); handle=FileOpen(gs_fname, FILE_CSV|FILE_READ|FILE_WRITE, ';'); if (handle>0) { FileSeek(handle,0,SEEK_END); } }
__________________
Remember, the F(X)orce will be with you, always.
|
|
|
||||
|
||||
|
Heres the tick logger code, it works great , however I've been trying to integrate into Cybertrader to log stats and orders and I've got it all worked out except I'm getting the error that too many files are open when in fact it only opens it once.... but Im getting close to solving... I'm working on this right now.. but maybe someone will beat me to the punch
|
|
|
||||
|
||||
|
Quote:
I know you work a lot with file handling. How can I get two experts from two brokers to write to the same file?
__________________
"Anyone who has never made a mistake has never tried anything new." -Albert Einstein |
|
|
|||
|
|||
|
External file handler
Somewhere in the tons of documentation I have read on MetaTrader I saw an external file write routine that could be downloaded. I get odd results sometimes when using the internal file handling so I would like to try this one. Now I cant find it. Anyone knows?
|
|
|
|||
|
|||
|
I moved your post to this thread.
Also you can look at this thread dose it posible to creat any function of "mql code" posting in this forum? where I am collecting all the links which can help coders. |
|
|
|||
|
|||
|
This thread #import and this one can be related to your question Execute SQL from Metatrader
|
|
|
|||
|
|||
|
This was what I was looking for
|
| Thread Tools | |
|
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Welcome to the MQL4 course | codersguru | Metatrader 4 mql 4 - Development course | 84 | 05-18-2008 05:59 PM |
| www.mql4.com | DeSt | Metatrader 4 | 18 | 02-01-2006 11:59 PM |
| FileOpen problem... | twinsen | Questions | 6 | 11-20-2005 11:53 PM |