请教一个关于_ftscanf的问题
南安风语者 2006-11-03 11:46:25 FILE* g_fp;
CString csTemp = _T("");
LONG nYear = 0;
LONG nMonth = 0;
LONG nDay = 0;
CreateDirectory( HTDate_Time_Path, NULL);
g_fp = _tfopen( HTDate_Time_Path, _T("r"));
_ftscanf( g_fp, _T("%s"), csTemp);
AfxMessageBox( csTemp);
nYear = _ttol( csTemp.Left( 4));
nMonth = _ttol( csTemp.Mid( 4,2));
nDay = _ttol( csTemp.Mid( 6,2));
csTemp.Format( _T("%d/%d/%d"), nYear, nMonth, nDay);
AfxMessageBox( csTemp);
fclose( g_fp);
"HTDate_Time_Path"是文件的路径,一个.TXT文件,里面写的是"20061103124500"第一个MessageBox弹出来的值是正确的,可第二个弹出来的却是"-691115116/-691115116/-691115116",我一直没有弄明白为什么会浴出,请各位高手指点一下