IT IS MAINLY USED FOR READING AND WRITING THE DATASTRUCTURE:
FREAD and FWRITE:
#include <stdio.h>
size_t fread(vid *ptr, size_t size,
size_t nmemb, FILE *stream);
size_t fwrite(const void *ptr, size_t
size, size_t nmemb, FILE * stream);
The ffread () reads nmemb elements of
data , each size bytes long,from the stream pointed to by stream,
stroring them at the location given by ptr.
The Function fwrite () writes nmemb
element of data, each size bytes long to stream pointed to by stream
,obtaining them from the location given by ptr.
No comments:
Post a Comment