Programming in C

Lecture 9: MANIPULATING FILES

CHRIS STAFF
Dept. of Computer Science and Artificial Intelligence
University of Malta


Lecture Outline

Aims and Objectives
Files
Before a File can be Opened...
Closing Files
Reading from a stream
Writing to a stream
Reading from Standard Input


Aims and Objectives

Files

Before a File can be Opened...

Closing Files

Reading from a stream

Writing to a stream

Exercise

Reading from Standard Input

Exercise 2