haitao:
整个文件是这样一个字符一个字符地加起来的?那是要死人的
[阅读: 459] 2005-03-26 15:14:54
应该先
L := FContentLength ;
for longIndex := 0 to FContentLength - 1 do
begin
if FContentData[ longIndex ] = 0 then //0表示内容结束
begin
L:=longIndex;
break;
end;
end;
setlength( ContentData , L );
memcopy(ContentData[1] , FContentData , L );