The purpose of this exercise is to benchmark file writing
and reading speed. This exercise is divided into two parts.
a). Write a file character by character such that the total
file size becomes approximately >10K. After writing close
the file handler, open a new stream and read the file
character by character. Record both times. Execute this
exercise at least 4 times
b). Create a buffer capable of storing 100 characters. Now
after generating the characters, first store them in the
buffer. Once the buffer is filled up, store all the
elements in the file. Repeat the process until the total
file size becomes approximately >10K.While reading read a
while line, store it in buffer and once buffer gets filled
up, display the whole buffer. Repeat the exercise at least
4 times with different size of buffer (50, 100, 150 ā¦).
Records the times.
c). Do an analysis of the differences in times and submit
it in class.
No Answer is Posted For this Question
Be the First to Post Answer
int a[3][5]={ {1,2,3,4,5],{2,3,4,5,6},{10,11,12,13,14}}; int *p=&a; printf(ā%dā,*(*(x+1)+3));
Is it better to use a macro or a function?
Difference between Shallow copy and Deep copy?
How can I pad a string to a known length?
Why can’t constant values be used to define an array’s initial size?
when user give a number it multiply with 9 without useing '+' and '*' oprator
Is it possible to run using programming C for Java Application?
The variables are int sum=10,SuM=20; these are same or different?
which of the following go out of the loopo if expn 2 becoming false a.while(expn 1){...if(expn 2)continue;} b.while(!expn 1){if(expn 2)continue;...} c.do{..if(expn 1)continue;..}while(expn 2); d.while(!expn 2){if(expn 1)continue;..}
pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)
Tell us the difference between these two : #include"stdio.h" #include<stdio.h> define in detial.
What is the difference between a free-standing and a hosted environment?