Hi danceWithLions,
for me your code prefectly works, what is not working for you? Do you get compilation errors or is the output incorrect? I mean, of course your snippet is not complete - I just added the missing dataTypeDeclarations to my copy but then it worked...
Hi tradeigel
Thanks a lot! I will double check. The output is incorrect.
Happy trading!
Read_Open=FileOpen("open.csv", FILE_CSV|FILE_WRITE, ';');
When that executes, it creates a new empty file. Is that what you want?
I want open a csv file that haved data,i open it with
handle=FileOpen("Report.csv", FILE_CSV|FILE_WRITE|FILE_READ, ',');
i found that this code will open a empty file, so i read NULL value with
Print("read=",FileReadString(handle));
how can i open a file with data?
If FILE_WRITE does not combine with FILE_READ, a zero-length file will be opened. If even the file containd some data, they will be deleted. If there is a need to add data to an existing file, it must be opened using combination of FILE_READ | FILE_WRITE.
If FILE_READ does not combine with FILE_WRITE, the file will be opened only if it already exists. If the file does not exist, it can be created using the FILE_WRITE mode.
I found it does't work like the note in help document
the trouble haved been shooted
i have a mistake in my EA

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I am trying to write some filewrite() and fileread() codes. filewrite() like this:
It works. But fileread() like this:
does not work. I know there must be some mistakes but I do not know where they are.
Please help, Thanks!