//ファイルの情報を取得
#include <sys/stat.h>
#include <time.h>
void ○○○Dlg::OnButton1()
{
struct stat st;
if(0 == stat("c:\\test.txt",&st)){//戻値が0ならば成功
TRACE("%d バイト\n",st.st_size);
TRACE("更新日時 :%s",ctime(&(st.st_mtime)));
TRACE("アクセス日時 :%s",ctime(&(st.st_atime)));
}
}