Write a statement in Python to open a text file “ABC.TXT" in
reading mode.
Answers
Answered by
1
Answer:
In the above example, the user wants to open a file named “abc. txt” in the read mode.
...
Opening a Python File.
Mode Function Description
“r+” It opens a file in both reading and writing mode
“b” Opens a file in binary mode (in case of images, .exe. files)
“t” It opens a file in text mode
Similar questions