What is max file size for openning with FileOpen Function?

 

Hello .

I am using FileOpen Function just like below:

Everything is working fine,but when i use the same for a file with 20MB size it gave me error for openning file?

So i think that's because size restrictions, any one know what is maximum file size that we can open with FileOpen Function???

or is there any trick that i can open my 20MB file??

string filename = "Strategies.csv";
int file = FileOpen(filename,FILE_CSV|FILE_READ,';');
if (file<0)Print("can\'t open file");
 
kimitrio:

Hello .

I am using FileOpen Function just like below:

Everything is working fine,but when i use the same for a file with 20MB size it gave me error for openning file?

So i think that's because size restrictions, any one know what is maximum file size that we can open with FileOpen Function???

or is there any trick that i can open my 20MB file??

I don't know the size limit, but I often open files much larger than 20mb with no problems.

I recommend you print GetLastError() after FileOpen() to get more info.

 
gordon:

I don't know the size limit, but I often open files much larger than 20mb with no problems.

I recommend you print GetLastError() after FileOpen() to get more info.

Thanks For Help

The Problem was in "\r\n" at end of each line

I repaired my CSV file Using CSVed software. no that's work