HANDLING COMPUTER FILES
DATA PROCESSING SSS2 SECOND TERM
WEEK 3
HANDLING COMPUTER FILES
Contents
BASIC OPERATIONS OF COMPUTER FILES:
Create: Create a file with a given name.
Delete: Deleting a file that is unwanted.
Retrieve: Retrieve a stored file or lost file.
Copy: Copying a created file to either an external or in-built storage device.
View: Viewing a created file or granting the privilege of viewing.
Open: Opening a file to use its contents.
Update: Reading or updating the contents.
Close: Closing the file, thereby losing access until it is opened again.
STEPS IN CREATING SEQUENTIAL FILE:
The OPEN statement is used in writing information to a file. In general, the open statement follows this pattern;
OPEN file FOR OUTPUT AS 1
The…