Quote Originally Posted by M109uk
Hi all,

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

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!
I think you'll better drop the pchar and use TMemoryStream instead, that is more Pascal and OOP
Memory streams are streams stored in ram, wh ere you can define the size. A buffer, in other word
You can create a memory stream and load the file there. Then you can pass the stream to all functions like "loadfromstream". Also, you can use the read methods to read the data, and you can still access to the pointer with the appropriate field (if i remember well it's MemoryStream.memory )

Bye!