Sure:
Use VFSFileSize to determine the file size, then allocate the memory (e.g.
with MemGluePtrNew), and then read the file part by part (repeated
VFSFileRead calls until the returned number of bytes read is zero or until
an error occurs).

Jan Slodicka

----- Original Message -----
From: "Anders Rahm-Nilzon" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Monday, January 05, 2004 11:43 AM
Subject: VFSFileRead


> Is it possible to read a greater file then 64k ? I use MemHandleLock to
> determine the size of the file and then send it as an argument to
> VFSFileRead, but I want to use MemGluePtrNew so I can read a greater file
> then 64k. When I try that I get an NULL return value from VFSFileRead.
> Please help me !!!
>
> Best Regards,
> Anders Rahm-Nilzon
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to