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(‘[Link]’)
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 = [Link](“Hi
Studentfile APPEND”HI THERE” Comparison there”)
Open File
Pseducode Python
OPEN STUDENTFILE FOR WRITE Comparison Open([Link])
Close File
Pseducode Python
CLOSE [Link] Comparison Studentfile = close.([Link])
Exception & Exception handling
• Exception (Unexpected issues)
• Exception handling(Solving
exceptions inside software)