i have a file hello.txt
and a pointer *i pointing to the file, i have opened the file using c open(*i) function. i want to get the size of file using getpagesize(2) to read the content of the file and further write that content to a destination file. so getting the size of the file i required to now how big is the file and how much content there is to read.
i have a file hello.txt and a pointer *i pointing to the file, i
Share
If you are using the
opensystem function to open the file, you should look into thefstatfunction to get the size: