Apr-15-2019, 07:00 PM
There are three steps(open,write,close)required for file handling files. You need to write a Python program that executes each of these three steps. Your program must include:
1 Extensive comments to ensure explanation of your code.(1)
2 Open a file (file name must include your student number,thus filexxxxxxxx.txt)
3 Write your name,surname and your date of birth to a file.(1)
4 Close the file
5 Then open the file again.(1)
6 Write the contents of the file to display on screen(1)
1 Extensive comments to ensure explanation of your code.(1)
2 Open a file (file name must include your student number,thus filexxxxxxxx.txt)
3 Write your name,surname and your date of birth to a file.(1)
4 Close the file
5 Then open the file again.(1)
6 Write the contents of the file to display on screen(1)