[cs631apue] doubt on read()

Jason Ajmo jajmo at stevens.edu
Fri Dec 1 10:59:45 EST 2017


I don't completely understand the question, but if you read the entire file
in one read() call, then you don't have to do any more reading.

On Fri, Dec 1, 2017 at 10:54 AM Jeevanandha Ramanathan <jramana1 at stevens.edu>
wrote:

> Hi ppl,
>
> When I read from the file descriptor, it's efficient to read in iteration
> of the BLOCKSIZE, but what happens if I read the entire file into the
> buffer in just one read() call?
>
> --
> Thank you.
>
> Kind regards,
> Jeeva
>
>
>
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue
>
-- 
Jason Ajmo
Stevens Institute of Technology
B.S. Cybersecurity '17
M.S. Computer Science '18
0x56FA3123
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20171201/5928f604/attachment.html>


More information about the cs631apue mailing list