Question: 1. Create a New File named fileHandling.txt 2. Write two sentences in the file 3. Read the content of the file 4. Read the first

1. Create a New File named "fileHandling.txt" 2. Write two sentences in the file 3. Read the content of the file 4. Read the first 6 characters of the file 5. Read 2 lines of the file 6. Append this sentence "Welcome to Python" 7. Read the content of the file. 8. Overwrite this sentence "Bye Python" 9. Read the content of the file. 10.Delete the file. 11.Read the content of the file. 12. Try to Delete again using if condition
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
