Hi all,

again another question,
Is it possable to read file information from a file stored in a PChar?

e.g.
[pascal]
type
TFile = Record
Data: PChar;
// other information
end;

TPak = class
files: Array of Tfile;
// other information
end;

procedure TPak.LoadPakFile
begin
// read pak file
For i := 0 To files count -1 Do
Begin
// read file information
stream.read(files[i].data^, files[i].size);
End;
// other information
close stream
end;
[/pascal]

I want to load the pak file at the beginning of the program and keep it in memory, but i have no idea how i can read the file data from the pak file item!