#include "stdafx.h"
#include <io.h>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{struct _finddata_t fileinfo;
long hFile; //文件句柄
try
{
if((hFile = _findfirst(" D:\\*.txt",&fileinfo)) == -1)
return 1;
else
{
do
{
printf("%s\n",fileinfo.name);