using namespace std int _tmain int argc _TCHAR argv FILE char 1000 int

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
FILE *f;
char s[1000];
int last=0;
f=fopen("abc.exe","r");
for(int i=0;i<1000;i++){char a=fgetc(f);cout<<a;if(a==NULL){break;}}
system("pause");
return 0;
}