<div dir="ltr">I don&#39;t completely understand the question, but if you read the entire file in one read() call, then you don&#39;t have to do any more reading.<br></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Dec 1, 2017 at 10:54 AM Jeevanandha Ramanathan &lt;<a href="mailto:jramana1@stevens.edu">jramana1@stevens.edu</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi ppl,<div><br></div><div>When I read from the file descriptor, it&#39;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?<br clear="all"><div><br></div>-- <br><div class="m_8255060400275929312gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font color="#134f5c">Thank you.</font><div><font color="#134f5c"><br></font></div><div><font color="#134f5c">Kind regards,</font></div><div><font color="#134f5c">Jeeva</font></div><div><font color="#0c343d"><br></font></div><div><br></div><div><br></div></div></div></div></div>
</div></div>
_______________________________________________<br>
cs631apue mailing list<br>
<a href="mailto:cs631apue@lists.stevens.edu" target="_blank">cs631apue@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs631apue" rel="noreferrer" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs631apue</a><br>
</blockquote></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Jason Ajmo</div><div>Stevens Institute of Technology</div><div>B.S. Cybersecurity &#39;17</div><div>M.S. Computer Science &#39;18</div><div>0x56FA3123</div></div></div>