Read Specified Number of Elements

What function will read a specified number of elements from a file?

Questions by shamina sasankan

Showing Answers 1 - 6 of 6 Answers

its the read() function

the syntax is

int bytes = (fp, buf,1);

First argument is the source file, second argument is the address of the buffer and the third argument is the maximum number of bytes we want to read.

It returns the number of bytes actually read.

  Was this answer useful?  Yes

kiran.eemuru

  • Aug 1st, 2012
 

fread() function will read a specified number of elements from a file .

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions