How to save to *.TXT file

 

how to save Current ask price to the file c:\current.txt

and how to read it by expert . someone give me code . thank very much

 

int handle=FileOpen("fxlog.csv", FILE_CSV|FILE_WRITE|FILE_READ, '\t');

FileSeek(handle, 0, SEEK_END);

FileWrite(handle, DoubleToStr(Ask, 4));

FileClose(handle);

Reason: