Python Tutorial for Beginners 42 - Reading Files in Python

preview_player
Показать описание
Kind of like “File - Open” in a Word Processor.
name = open("filename")- opens the given file for reading, and returns a file object
The “r” is called the “access mode”. r is for reading, if the file does not exist, an error is raised
w is for writing- If the file exists, the contents are overwritten. If the file does not exist, it will be created
a is for appending- If the file exists new data is appended to the end of the file. If the file does not exist, it will be created

#PythonTutorialforBeginners #ProgrammingKnowledge #LearnPython #PythonCourse
★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

Thank you so much. That was a very good explanation, helped my a lot!

mateusmendes
Автор

Thank you my friend, this is very useful, I appreciate your work. Regards.

danielmolina
Автор

I am developing an app and I need some contents, are u interested for collaboration?

mechaadi
join shbcf.ru