Files

6/11/99


Click here to start


Table of Contents

Files

Outline

Outline (cont)

Text Files

File Terms

File Pointers

Standard File Pointers

Interactive Processing

Batch Processing

Structure of Files

Structure of Text Files (cont)

Manipulating User Files

fopen Command

fopen Command (cont)

fclose Command

Open/Closing File

fprintf Command

fscanf Command

fscanf/fprintf Example

Field Specification Revisited

Field Specification

Scanning Multiple Arguments

Reading Characters

Showing a File

Writing Characters

Creating a File

Copying a File

Count # Lines, Chars

Reading to End of Line

Dealing with Problem Input (scan)

Doing Your Own Formatted Input

Removing White Space

Reading Integer Magnitude

Safely Reading an Integer

Reading a Float

Author: Richard Maclin

Email: rmaclin@d.umn.edu

Home Page: http://www.d.umn.edu/~rmaclin/

Download presentation source