<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> <br>
> For whatever reason this file has only 98304 bytes. The content looks<br>
> all right. So, the next step is to modify the client so that it can<br>
> read<br>
> from a file instead of the TCP stream.<br>
> <br>
> I am trying to write code to read from the original raw record item.<br>
<br>
I am not sure why you want to do this. On which task are you currently <br>
working?<br></blockquote><div>I am working on the 2nd task to modify the record-client program to read from a file if a --input=<FILE> command line option is given.</div><div><br></div><div>client_item record;<br></div><div>while(fread(&record, sizeof(record), 1, input_file)) <br> printf ("CPU=%d\n",record.cpu);<br></div><div><br></div><div>Here input_file is a file provided through the command.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font size="4"><b>Ravindra Kumar Meena</b></font>,<div><span style="color:rgb(102,102,102)">B. Tech. Computer Science and Engineering,<br></span></div><div><span style="color:rgb(102,102,102)"><a href="https://www.iitism.ac.in/" style="color:rgb(17,85,204)" target="_blank">Indian Institute of Technology (Indian School of Mines)</a>, Dhanbad</span></div></div></div></div></div></div>