Question
Write Python code to perform the following
(i)Copy content of file first tutto second tut
(ii) Reading a file
(iii) Writing into a file
(iv) Appending into a file
Answer :
Word Count : 156
______ _________ _________ ___ _________.
_______ ______ _____ ________ ______ ________ _______.
________ _______ ____ _________ __________ ___ ___ _______ ________ _____ ___.
_____ __________ ________ _________ ________ _________ ________ __________ _______ _______.
____ _____ _______ _________ __________ _______ __________.
____ _________ ______ ___ _________.
__________ _________ ___ ____ ________ ________.
_______ _________ ___ __________ ____ _____ _______.
__________ _____ ________ ____ ___ ___.
___ ________ __________ ___ ___ ___ ____ ________ _____ ______.
_________ _____ __________ _______ ________ _____ ________.
_______ ___ _________ __________ ______ ________ ______.
________ ____ _________ _______ ________ ____ _________ __________ ________ _____ ________ _______.
_________ __________ ___ ________ _______ _______ ________ ________ ___ ______.
____ _____ ______ ________ ________ _________.
______ __________ _____ ________ __________ ___ __________.
Skip in 10
Sure! Below are the solutions to your queries in Python.
(i) Copy content of file "first.txt" to "second.txt":
# Open the source file (first.txt) in read mode and the destination file (second.txt) _______ ______ _____ ________ ______ ________ _______.
________ _______ ____ _________ __________ ___ ___ _______ ________ _____ ___.
_____ __________ ________ _________ ________ _________ ________ __________ _______ _______.
____ _____ _______ _________ __________ _______ __________.
____ _________ ______ ___ _________.
__________ _________ ___ ____ ________ ________.
_______ _________ ___ __________ ____ _____ _______.
__________ _____ ________ ____ ___ ___.
___ ________ __________ ___ ___ ___ ____ ________ _____ ______.
_________ _____ __________ _______ ________ _____ ________.
_______ ___ _________ __________ ______ ________ ______.
________ ____ _________ _______ ________ ____ _________ __________ ________ _____ ________ _______.
_________ __________ ___ ________ _______ _______ ________ ________ ___ ______.
____ _____ ______ ________ ________ _________.
______ __________ _____ ________ __________ ___ __________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.