In this python tutorial, we will clarify about reading/ writing files, how to work with a file, how to open, create and close a file, use of “functions”, “modules” and “flags”.
Code used in this tutorial: https://github.com/codebasics/py/blob/master/Basics/13_read_write_file.py
Exercise: https://github.com/codebasics/py/blob/master/Basics/Exercise/13_read_write_files/read_write_file_exercise.md
Topics that are covered in this Python Video:
0:00 Overview
0:32 Open() function
1:35 write() function
1:51 close() function
2:54 append mode in a file
4:06 read from a file
5:10 read mode in a file
5:35 read() function
7:19 Split() function
11:50 File opening modes
13:23 with statement
14:16 close Flag in file
Do you want to learn technology from me? Check https://codebasics.io/ for my affordable video courses.
Next Video:
14. if __name__ == "__main__": https://www.youtube.com/watch?v=2AKJzc-cSj8&list=PLeo1K3hjS3uv5U-Lmlnucd7gqF-3ehIh0&index=17
Website: https://codebasics.io/
Facebook: https://www.facebook.com/codebasicshub
Twitter: https://twitter.com/codebasicshub