M
mazheng
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.btn1Click(Sender: TObject);
var iFileHandle,kbStart,kbEnd,kbSize:integer;
Mp3Name,text: string;
Buffer: PChar;
begin
Mp3Name:='123.mp3';
iFileHandle := FileOpen(Mp3Name, fmOpenRead);
kbSize:=FileSeek(iFileHandle,0,2);
Buffer := PChar(AllocMem(kbSize + 1));
FileRead(iFileHandle, Buffer^, kbSize+1);
FileClose(iFileHandle);
text := ???
end;
var iFileHandle,kbStart,kbEnd,kbSize:integer;
Mp3Name,text: string;
Buffer: PChar;
begin
Mp3Name:='123.mp3';
iFileHandle := FileOpen(Mp3Name, fmOpenRead);
kbSize:=FileSeek(iFileHandle,0,2);
Buffer := PChar(AllocMem(kbSize + 1));
FileRead(iFileHandle, Buffer^, kbSize+1);
FileClose(iFileHandle);
text := ???
end;