Quick Navigation Bar
functions, preprocessor :: input/output and file i/o :: pointers
[ toc | forums ]
  Note: If the document URL does not begin with http://randu.org/tutorials/c/ then you are viewing a copy. Please direct your browser to the correct location for the most recent version.

Input/Output and File I/O

With most of the basics of C under our belts, lets focus now on grabbing Input and directing Output. This is essential for many programs that might require command line parameters, or standard input.

I/O :: printf(3)

I/O :: scanf(3)

File I/O :: fgets(3)

File I/O :: sscanf(3)

File I/O :: fprintf(3)

File I/O :: fscanf(3)

File I/O :: fflush(3)

File I/O :: fopen(3), fclose(3), and File Pointers

I/O and File I/O :: Return Values

Other I/O Functions

Command Line Arguments and Parameters :: getopt(3)

Input/Output and File I/O Review


Valid XHTML 1.0! Valid CSS!
© 1999-2008 Alfred Park (fred AT randu.org)