Message printed in single column in .csv

 
Hi!
Can anyone please tell me a solution for this problem that the message I tried to write in excel (.csv) was written in single column of a row altogether. Not in different columns.
My code was this:

string handle = "testingexcel.csv";

int myexcelhandle = FileOpen(handle, FILE_READ|FILE_WRITE|FILE_CSV);

FileSeek(myexcelhandle, 0, SEEK_END);

FileWrite(myexcelhandle, "Time", TimeCurrent(), "Price", iClose(NULL, PERIOD_CURRENT, 1));

FileClose(myexcelhandle);
 
Sal Mod: Not in different columns.
  1. Please edit your (original) post and use the CODE button (Alt-S)! (For large amounts of code, attach it.)
              General rules and best pratices of the Forum. - General - MQL5 programming forum (2019)
              Messages Editor

  2. FileWrite(myexcelhandle, "Time", TimeCurrent(), "Price", iClose(NULL, PERIOD_CURRENT, 1));
    You wrote four (4) columns in your call. Why does that surprise you?