dear,<div>i have a little confused about MPI i/o, because iam new for this programming. i have some question.</div><div>if i want make some program with this code<br><br></div><div>1)</div><div><br></div><div>int get_size(char *filename)</div>
<div>{</div><div> struct stat buf;</div><div> stat(filename,&buf);</div><div> int j =buf.st_size;</div><div><br></div><div> return j;</div><div>}</div><div><br></div><div>2)</div><div><div> key = fopen(key_file, "rb");</div>
<div> <span class="Apple-tab-span" style="white-space:pre"> </span>fread(Kunci, pk, 1, key);</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>for(i=0;i<Nk*4;i++)</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>Key[i]=Kunci[i];</div>
<div><br></div><div>3) hasil = fopen (file_akhir, "wb");</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>for (k=0;k<(((block-1)*16)+pad);k++) </div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>{</div>
<div> fputc(output[k], hasil);</div><div> }</div><div> fclose (hasil); </div></div><div><br></div><div><div>how to translate that code into MPI i / o ?</div></div><div>thanks a lot for your attention</div>
<div><br></div><div>Regards<br><br><br>Handana</div><div><br></div><div><br></div>