block read error

前端 未结 2 1766
北恋
北恋 2020-12-22 12:06

Can anybody please explain me why I am hitting \'I/O error 998\' in the below block read?

function ReadBiggerFile: string;
var
  biggerfile: file of char;
           


        
2条回答
  •  太阳男子
    2020-12-22 12:48

    Hi: I had the same issue and i simply passed it the first element of the buffer which is the starting point for the memory block like so:

        AssignFile(BinFile,binFileName);
        reset(BinFile,sizeof(Double));
        Aux:=length(numberArray);
        blockread(BinFile,numberArray[0],Aux, numRead);
        closefile(BinFile);
    

提交回复
热议问题