R
raoeeeee
Unregistered / Unconfirmed
GUEST, unregistred user!
现有程序var
srcfile,desfile:file;
read,sum:integer;
buffer:array [1..4] of byte;
begin
assignfile(srcfile,'d:/911911/600692.day');
assignfile(desfile,'d:/911911/600691.day');
reset(desfile,1);
reset(srcfile,1);
sum:=0;
//seek(srcfile,filesize(srcfile));
seek(srcfile,filesize(srcfile));
repeat
blockread(desfile,buffer,sizeof(buffer),read);
blockwrite(srcfile,buffer,sizeof(buffer));
until read=0;
closefile(desfile);
closefile(srcfile);
但是假设600692,600693的文件大小都是40字节,合并之后应为80字节,但为84字节,为何?
多出的4字节哪来的?
srcfile,desfile:file;
read,sum:integer;
buffer:array [1..4] of byte;
begin
assignfile(srcfile,'d:/911911/600692.day');
assignfile(desfile,'d:/911911/600691.day');
reset(desfile,1);
reset(srcfile,1);
sum:=0;
//seek(srcfile,filesize(srcfile));
seek(srcfile,filesize(srcfile));
repeat
blockread(desfile,buffer,sizeof(buffer),read);
blockwrite(srcfile,buffer,sizeof(buffer));
until read=0;
closefile(desfile);
closefile(srcfile);
但是假设600692,600693的文件大小都是40字节,合并之后应为80字节,但为84字节,为何?
多出的4字节哪来的?