0% found this document useful (0 votes)
4 views8 pages

File Processing & Exception Handling- A level

Uploaded by

Denver Demis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views8 pages

File Processing & Exception Handling- A level

Uploaded by

Denver Demis
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

File Processing &

Exception Handling
Further Programming
Key terms
• Read (To check data)
• Write (To correct data)
• Append (To add data)
• Open (To choose data)
• Close ( To stop edits)
Reading File
Pseducode Python

studentFile = read(‘student.DAT’)
OPEN studentFile FOR READ
• No particular command for Comparison • Has to meantion what they are
reading
doing with the file after
Write File
Pseducode Python

Studentfile = WRITE “Here is a written


text” Comparison Studentfile = write(“Text added”)
Append File
Pseducode Python

Studentfile = Studentfile.append(“Hi
Studentfile  APPEND”HI THERE” Comparison there”)
Open File
Pseducode Python

OPEN STUDENTFILE FOR WRITE Comparison Open(Studentfile.txt)


Close File
Pseducode Python

CLOSE studentfile.txt Comparison Studentfile = close.(studentfile.txt)


Exception & Exception handling

• Exception (Unexpected issues)


• Exception handling(Solving
exceptions inside software)

You might also like