Python Programming for Beginners - 37 File Handling [English/Tagalog]

Опубликовано: 25 Октябрь 2024
на канале: JLearn PH
2,476
24

In this video, you will be learning about file handling
how to we handle files in python
what are the different methods in file handling
how to be open files in python
how do we locate the file we want to open in python
how to input the location of a file that is readable by python

"r" - Read - Default value. Opens a file for reading, error if the file does not exist
"a" - Append - Opens a file for appending, creates the file if it does not exist
"w" - Write - Opens a file for writing, creates the file if it does not exist
"x" - Create - Creates the specified file, returns an error if the file exists

Note: file opening is not limited to just .txt files, it can also open .csv, .bmp and more

If you like my content, please consider liking this video and subscribing for more Python lectures


Follow and connect with me:
Business Email: [email protected]
Facebook:   / jlearnph  
YouTube:    / jlearnph  
Website: https://jlearnph.wordpress.com/