Python File Handling - How to Read & Write Files With 5 Examples
Reading and writing files in Python is something that every Python programmer will do at some point. In this video, I will teach you how to work with Python file objects by going through five example scripts that use the open function and the read and write methods on the file objects returned by the open function.
The first example will count the number of words in a file. The second example will format a text file. The third will combine multiple text files into one. The fourth example will show you how to back up binary files. And the final example will demonstrate how to save and restore a working directory in a similar way to git.
Need one-on-one help with your project? I can help through my coaching program. Learn more here: https://prettyprinted.com/coaching
Get the code here: https://prettyprinted.com/l/xPy
0:00 Intro
1:00 Count Words
6:13 Format Files
11:25 Combine Files
16:53 Backup Files
23:54 Save and Restore Files
50:28 Outro
Twitter: https://twitter.com/pretty_printed
Github: https://github.com/prettyprinted
#Python
Видео Python File Handling - How to Read & Write Files With 5 Examples канала Pretty Printed
The first example will count the number of words in a file. The second example will format a text file. The third will combine multiple text files into one. The fourth example will show you how to back up binary files. And the final example will demonstrate how to save and restore a working directory in a similar way to git.
Need one-on-one help with your project? I can help through my coaching program. Learn more here: https://prettyprinted.com/coaching
Get the code here: https://prettyprinted.com/l/xPy
0:00 Intro
1:00 Count Words
6:13 Format Files
11:25 Combine Files
16:53 Backup Files
23:54 Save and Restore Files
50:28 Outro
Twitter: https://twitter.com/pretty_printed
Github: https://github.com/prettyprinted
#Python
Видео Python File Handling - How to Read & Write Files With 5 Examples канала Pretty Printed
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
How to Integrate Filestack in Flask Apps to Easily Handle File UploadsHow to Sort Results in PyMongoIntro to Flask (Part 5) - Guest Book TemplatesUsing Multiple Select Fields with Flask-WTF and Flask-SQLAlchemyTracking Apps Errors in Django With SentryHow to Use Association Objects and Proxies in Flask-SQLAlchemy Many to Many RelationshipsIntegrating AIOHTTP Into a FastAPI AppIntro to Flask (Part 8) - Wrap UpUsing the DictCursor in Flask-MySQLDBFlask Blueprints - Using TemplatesUsing Sentry With Flask to Log ErrorsHow to Create a Grid in a Jinja2 TemplateTesting JSON Data in Oracle 12C With IS JSON and JSON_EXISTSHow to Enable User Invites in Flask-UserThe Map, Filter, and Reduce Functions in PythonConverting JSON Data to Relational Data in Oracle 12CMinifying Files With Flask-AssetsSome New Features in Flask 2.0Creating a Custom Save Method in Django ModelsHow to Create Background Tasks in Fast APIFlask-RESTPlus Swagger UI Tips