How to Open Read and Close Files in Python In Text Mode

preview_player
Показать описание
A beginner level tutorial for python programming on How to Open Read and Close Files in Python In Text Mode.
Both in the normal way and with the context manager.

Рекомендации по теме
Комментарии
Автор

Sir, is there any way open a file (.exe) at a specific coordinate ?
Hope you get my point
Thanks😊😊

amarmkulkarni
Автор

thank you sir!! other videos i see were using other editors than idle and i was confused as this is meant for school work...

candika
Автор

with open ('test.txt', mode='w') as f:
f.write('Hello World') Sir, how to close a python text in this format? Do I simply replace Open with Close, fir mode me bhi kuch likhna hai ? The code I have written above is for Opening and writing as well (if I'm not wrong)

KVMetalGod
Автор

hy grt bro umade my day.easy nd simple way to do it

sameersamu
Автор

Hi, it gives an error like _[Errno 2] No such file or directory: 'Selam.txt'_
(My files name is Selam)
And I do not understand, why.Can you help me to selve this errror?

yigitcan
Автор

বাংলা ভাষায় পিপ নিয়ে কোনো টিউটোরিয়াল নেই আমি আশা করবো আপনি এ নিয়ে একটা সিরিজ টিউটোরিয়াল তৈরি করবেন।
আমি আশা করি আপনি আমাকে আমার প্রশ্নের উত্তর দিবেন।

mostafijurrahmans
Автор

how to read the file from a different directory?

silverstreet
Автор

আমি আপনার নিকত বাংলায় এই টিউটোরিয়াল টা আশা করি।

mostafijurrahmans
Автор

আমি আরও মনে করি আপনার বিদেশি ভাষায় টিউটোরিয়াল তৈরি করার প্রয়োজন নাই কারণ এমনেতেই বাংলা ভাষায় পাইথন টিউটোরিয়ালের অভাব। সবার আগে আমাদের মাতৃভাষা বাংলা ভাষায় কন্টেন্ট সমৃদ্ধ করতে হবে।

mostafijurrahmans