Download MetaTrader 5
To add comments, please log in or register
Having questions to the author of an article? Discuss them on the Forum!
sd59
499
sd59 2014.08.22 19:00 

this code produces the file shown:

int start()
  {
   int handle = FileOpen(Symbol()+"_logfile.csv",FILE_CSV|FILE_READ|FILE_WRITE,',');
 if(handle>0)
  {
   //write file header
   FileSeek(handle,0,SEEK_SET);
   FileWrite(handle,"Symbol","idiot","idiot1","idiot2","idiot3");
   for(int i = 1;i<10;i++)
   { 
   
   FileWrite(handle,Symbol(),1,i+1,i+2,i+3);
   }
  }
  FileClose(handle);
  }

 

 

How can I open this at a later time (in same program) and add data to columns 'F', 'G', 'H' whilst still keeping existing values in other columns?

thanks 

/
To add comments, please log in or register