哪里错了?
FILE *fp;
if ((fp = fopen ("1.txt","rb")) == NULL )
{
printf ("error!");
}
else
{
fseek(fp,0l,SEEK_END);
length = ftell(fp);
txt_buff = (unsigned char *) unsigned char[length];
fread( txt_buff, 1, length, fp );
}
strcpy (s,txt_buff);
delete txt_buff;