Programming Thinking : File handling

File handling


Sometimes, a program might need to use data that is stored on our file system. To be able to do this, a program must open and read the files(s) from the file system.

Other times, we might want to generate reports for the results of some computations or operations within a program. The program should therefore be able to create and write files to the file system.

This section explain how this can be done in Python.

course logo
Programming Thinking
Number of sections:
Content length:
Delivery formats:


Evans Boateng Owusu
Evans is a Computer Engineer and cloud technology enthusiast. He has a Masters degree in Embedded Systems (focusing on Software design) from the Technical University of Eindhoven (The Netherlands) and a Bachelor of Science in Electronic and Computer Engineering from the Polytechnic University of Turin (Italy). In addition, he has worked for the high-tech industry in the the Netherlands and other large corporations for over seven years.... Show more