Note: You may not be able to take in all the information on file handling below in at one glance or sitting, but keep in mind that you may want to start the challenges and keep coming back to this information to see if you can find what you need to solve the problem. It's all here and with the information provided you should be able to solve not just this challenge, but ANY challenge /problem that involves file handling in python!
What would we do without files? Check out this video on facebook servers. Ever wondered where all the data you save/store/read on facebook is stored? Here's where! File handling is key in programming, as it deals with working with files and storing data. Without files, we are simply running code but when the program stops and the computer is switched off, we're left with nothing! Saving is essential, and where do we save stuff? In files. On to the challenges soon ....
Presentation - File Handling
Official Python 3 Documentation
A file is some information or data which isn't lost when you switch off your computer! It is stored externally in your computer storage which means it can be accessed whenever you want. You already know about different kinds of file , like your music files, video files, text files. You can only imagine the sort of massive "files" that an organisation like facebook holds on each of us! Python gives you easy ways to manipulate these files. Generally we divide files in two categories, text file and binary file. Text files are simple text where as the binary files contain binary data which is only readable by computer.
A sample flow chart (design) for this particular challenge could look like:
Test No. | Description | Test Data(input) | Expected Outcome | Actual Outcome | Further Action? |
---|---|---|---|---|---|
1 | |||||
2 | |||||
3 | |||||
4 | |||||
5 |