#include <stdio.h>
#include<stdlib.h>
main ()
{
	int i,k=1;
	FILE *fp;
		/*打开文件*/
	if((fp=fopen("c://text.txt","r"))==NULL)
	{
		printf("文件打开失败");
		exit(0);
	}
        for(i=1;i<=10;i++)
    {
	fscanf(fp,"%2d",&k);
	printf("\n第%d 个数据为：%d",i,k);
    }
	
	fclose(fp);
}
