Showing posts with label stream. Show all posts
Showing posts with label stream. Show all posts

Saturday, May 25, 2013

fgets

fgets(buffer, requiredsizeofbuffer, stdin)

stdin is the file stream


Friday, May 24, 2013

fread

Reads a block of data from stream. A stream is simply an array. fread reads an array.

The position indicator of the stream is advanced by the number of bytes read.

It reads through bytes but does not 'read the number of bytes successfully returned from a program' as many of the tricky questions will ask.