请教若要在文件开头加上一字符串"date,time,open,high,low,close,volume"
要如何设置,尝试
string strname;
strname="date,time,open,high,low,close,volume";
FileWriteString(CSVHandle, strname, 44);
FileWrite(CSVHandle,
StringConcatenate(TimeDay(i_time),"/",TimeMonth(i_time),"/",TimeYear(i_time)),
//TimeToStr(i_time, TIME_DATE),
TimeToStr(i_time, TIME_MINUTES),
DoubleToStr(d_open, i_digits),
DoubleToStr(d_high, i_digits),
DoubleToStr(d_low, i_digits),
DoubleToStr(d_close, i_digits),
d_volume);
。。。。。。
没有作用,没有将date,time,open,high,low,close,volume写在CSV文件的首行。谢谢!