follow my heart...
分类: C/C++
2006-09-18 08:59:48
FILE *newFile;
FILE *fp;
CFileDialog openDialog(true);
CString fileName;
CString newFileName;
char m;
char n;
if(openDialog.DoModal()==IDOK)
{
//newFileName=openDialog.GetFileName();
//fp=fopen(fileName.GetBuffer(MAX_PATH),"rb");
//newFileName="1.dat";
fp=fopen("default.swf","rb");
newFile=fopen("default.dat","wb");
while((m=getc(fp))!=EOF)
{
n=~m;
putc(m,newFile);