EXERCISE 5 – READ AND WRITE FILES
You are writing a program for that needs to do the following
First create a text file called demofile.txt and write the following into it
Hello! Welcome to demofile.txt
This file is for testing purposes.
Good Luck!
Next write a method to read this file (demofile.txt) and display its contents
Next write a function in your chosen programming language to create a new file called (writefile.txt ) and add the following text to this file
This is some new content to add to a new file!
Call this function in the program so the file gets created successfully. Demonstrate to your tutor that this file is created