Forum

Edit a specific line in a file.

I have a file with 1000 line such as : 1;2;1;3 2;5;8;6 6;3 ;1;2 1;8;2;8 2;4;1;4 2;7;2;3 I wnat to search for a row that : the first column is 6 and second column is 3 (Here is the third row ) and then I must add a number 8 to end of the file : 6;3 ;1;2 ;8 How can I do this and go the pointer to end

mql5 write in file

Hi . I write this code in mql4 and run in mt4 and works good . Means if i drop this indicator in 7 chart , then 7 symbols write in the file. But when i write in mql5 and run in mt5 , when i drop this indicator in 7 chart i see in the file just 2 symbol by random. Is it a bug in mql5 ? string