Week 04 - Lecture - Text File Handling V2
Week 04 - Lecture - Text File Handling V2
Text Files
When computer store data in hard disk, they are stored in the form of a file
A computer file can be,
An audio file
A video file
A text file
Etc.
Python allows accessing these files and manipulating them
Appending. The file pointer is at EOF if the file exists. If the file does not exist,
a it creates a new file for writing.
For appending and reading. The file pointer is at EOF if the file exists. If the file
a+ does not exist, it creates a new file for reading and writing.
This will affect the formatting when files are shared among systems!
https://www.w3schools.com/python/python_file_handling.asp