Reading Files - Python Tutorial #18 [Beginners]

Veröffentlicht am: 23 September 2024
auf dem Kanal: Pythonyst
28
0

Reading Files in Python
How to read files 📂in Python? In this tutorial we will go over using the open() function and it's different methods for reading text files!
Reading files is crucial for working with data, logs, or text files, making it super practical for many projects.

Different modes for the open() function when loading files:
https://docs.python.org/3/library/fun...

~ Timestamps ~
00:00:00 - Intro
00:00:09 - About loading our text file
00:00:34 - open( ) function
00:01:04 - Files from other folders
00:01:43​ - Reading the file (Method 1)
00:02:10 - Other modes for opening files
00:02:28​ - Closing the file
00:02:59​ - "with" for reading files (Method 2)
00:03:53​ - .read( ) to read by characters
00:04:28​ - .realines( ) to read by lines
00:05:30​ - .readline( ) for one line at a time
00:07:11 - Outro.

=== Code short-cut keys used in the Video ===
Running the program: "Ctrl" + "Enter"
Files Pane: "Ctrl" + "B"

📖 Full playlist - Beginner's Python:
   • Beginner's Python  

🎥 Equipment:
Video Record/Edit: Microsoft Clipchamp
Audio Record/Edit (Mic-App): BandLab

▶️ You can find me on:
Github | https://github.com/FaarisRazi/​
Instagram |   / pythonyst  

Hashtags:
#python​​​ #python3​​​ #pythonforbeginners​​​


Auf dieser Seite können Sie das Online-Video Reading Files - Python Tutorial #18 [Beginners] mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Pythonyst 23 September 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 28 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!