On 1/19/07, Praveen Kumar <rptechie@xxxxxxxxx> wrote:
yup srry abt that
what i wanted to suggest was the use of mmap for buffering the file in part or entirety instead of file reads
-- abrar momin wrote:how will you use mmap to get the size of the file?
On 1/19/07, Pharaoh . <pharaoh137@xxxxxxxxx > wrote:Hi
How to find size of a file from a userspace program without using shell commmands with system() etc?
I want to allocate a buffer and read the entire contents of a file, I know this is not good for large files, but I am just
experimenting with small file currently so this is good enough. Is there any system call available for this?
elegent solution
use mmap
yup srry abt that
what i wanted to suggest was the use of mmap for buffering the file in part or entirety instead of file reads
abrarahmed