How to Work with Files in Python? (Add Contents to File + Read Text from Files ) #26

How to Work with Files in Python? (Add Contents to File + Read Text from Files ) #26

Programiz

3 года назад

83,587 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Monique Brasil Baptista
Monique Brasil Baptista - 15.04.2023 21:10

It helps me a lot!!! Thanks a million! 🤩

Ответить
Quang Dũng Đỗ
Quang Dũng Đỗ - 11.04.2023 18:33

your videos are great, this one is not an exception.Thank you programiz team and congrat on 100k sub!

Ответить
ProgrammingBezaleel
ProgrammingBezaleel - 06.02.2023 17:54

Thank u sir

Ответить
Juan Micciollo
Juan Micciollo - 18.01.2023 18:54

You are one of the best, my friend.

Ответить
@X.D
@X.D - 01.01.2023 12:54

how we can read input data from console like a file?

Ответить
Adil Javed
Adil Javed - 16.10.2022 23:30

you are awsome man .....keep up the good work ,,,,,superb

Ответить
ThestrongerHD
ThestrongerHD - 10.10.2022 13:41

Maan. I do love when people explain programming in a easy manner. Keep posting my guy

Ответить
DR. DNA
DR. DNA - 26.09.2022 12:40

how to open the file we write ?? i am using the read method but am unable to do so.please help

Ответить
Tevin Douglas
Tevin Douglas - 16.09.2022 23:23

I don't comment on videos often.... But man, YOU DID A GREAT JOB WITH THIS VIDEO!!!

Ответить
Dineshraghavan v
Dineshraghavan v - 26.07.2022 05:26

why is programming getting printed in second line while we use read(12)

Ответить
Gurman Deep Kaur
Gurman Deep Kaur - 14.06.2022 15:33

Very helpful and detailed chapter👍🏻
But a doubt.
Could you please tell us if there's any way to perform data handling python programs on android or IOS phones?

Ответить
Sleepy Angel
Sleepy Angel - 02.06.2022 19:25

this is great! super helpful and easy to understand. Subscribed

Ответить
Funaholic
Funaholic - 08.05.2022 11:55

Which ide you bro ?

Ответить
Siddarth Holt
Siddarth Holt - 02.05.2022 03:22

Wow amazing……I just came for file. Now I’ll go back and go through all the classes

Ответить
Sebqat Akram
Sebqat Akram - 08.04.2022 02:02

So helpful! Thank you!!!

Ответить
Melanie
Melanie - 01.04.2022 03:34

Whenever I am having a hard time understanding I come find one of your videos and I always start understanding better. Thank you!!!

Ответить
Gerben
Gerben - 12.02.2022 20:47

i low amerika i lov pakistan pakistan number one !!

Ответить
Rafy-Ivan Morales
Rafy-Ivan Morales - 30.12.2021 17:40

I’m a new student and need help to do this project:
I have a port scanner script it works properly, it works in Pycharm using python3.9.
I have to make a file and I call this file (Example.txt).
On this example file, I have to do this:

3. If the Ports is open, it should create a file and add an entry for port number

4. In case of any exception for instance “host is not available”, “host name could not be resolved” or
due to any other error, you need to write that exception into the same file.

I’m not asking for you to do the project for me, I'm only asking ware I need to work or used in my script to accomplish this because it is my first time doing this and working with python too, and I have been struggling with this part one very bad. I can even send you the code, so you can look and only tell me what I’m doing bad and is not working.

Or try to make one day a video about this because I have search for this subject and I have not seen anything showing how to do these things in a script.

Ответить
Shriraj Thakare
Shriraj Thakare - 28.12.2021 07:12

ur vids are fabuluosly well curated and taught,plz keep making more.Can u plz explore the python libraries 1 by 1?

Ответить
Stones
Stones - 13.12.2021 00:17

Dude the set up you got looks fire. Keep doing what youre doing

Ответить
Dheeraj.p Dheeraj
Dheeraj.p Dheeraj - 28.11.2021 12:04

Thank you sir

Ответить
Cecilia Wang
Cecilia Wang - 10.11.2021 00:29

Thank you! Super helpful content

Ответить
Kevin H
Kevin H - 31.10.2021 18:30

What if I wanted to add numbers into the file. Do I need to define them as integers or is it not possible?

Ответить
Stephen Yuenger
Stephen Yuenger - 31.10.2021 13:12

I find your videos most helpful. With 50+ years in software development I am very new to Python and while making progress I find one element difficult. I am trying to attach additional Python functions/libraries and haven't solved that issue. I want to add "tinytag" so I can obtain the meta code for my personal music and video libraries. I seem to be missing something simple. Can you direct me?

Ответить
Basir Saboor
Basir Saboor - 14.10.2021 14:12

can any please tell me how is to run the files in the terminal coz I can't

Ответить
looser winner
looser winner - 06.10.2021 17:50

Simple yet effective

Ответить
Matthew Penner
Matthew Penner - 07.09.2021 04:08

you are a great teacher! thanks!!

Ответить
UserT UserB
UserT UserB - 28.08.2021 22:13

thanks a lot ,
verry helpful video.
your friend from Alegria.
new subscriber.

Ответить
vinayak sharma
vinayak sharma - 12.08.2021 08:14

💯💯

Ответить
abhijit mishra
abhijit mishra - 05.08.2021 10:28

Really an insightful video

Ответить
Reikha
Reikha - 15.07.2021 19:37

Thank you for your sharing ....👍👍👍👍

Ответить
Deneth Nanayakkara 6-F
Deneth Nanayakkara 6-F - 29.06.2021 07:52

can you make a vidio about how to make a working button in programiz

Ответить
Bhagya Fernando
Bhagya Fernando - 26.05.2021 21:21

Hai, Can you just do a complete video of installing any of the Python IDE to MacOS and related things with running some programs?

Ответить
INFORMER RAVI
INFORMER RAVI - 11.05.2021 05:44

I LOVE THAT WAY U TEACH IN SIMPLE AND EASY WAY.

Ответить
Francesca
Francesca - 04.05.2021 02:30

Excellent!! Bohot Shukria :-)

Ответить
Shreyas KUlkarni
Shreyas KUlkarni - 25.04.2021 11:55

Thanks a lot for this video. I really learned a lot.

Ответить
Daksh Shah
Daksh Shah - 07.04.2021 21:55

I just wish that your 13k turns to 1.3m subs 😉
Btw, sir, can you please make a video on the seek and tell method. Especially, how does it count the characters and EOLs in tell method?

Ответить
MrMaxinho
MrMaxinho - 24.03.2021 21:22

Hey bud, first wanna say thanks for these videos. Super helpful! But I'm hitting a snag with opening .txt files atm. I'm using Jupyter, and apparently it doesn't work the same as what you are using. Got any advice on that? Thanks again!

Ответить
Riya BGIA
Riya BGIA - 24.02.2021 14:39

Thank you so much. It was really helpful.

Ответить
Oren Yehezkely
Oren Yehezkely - 07.02.2021 19:00

Very good video. Thanks!

Ответить
Tauri~
Tauri~ - 05.02.2021 05:25

Thank you very much ~!

Ответить
ahmed yousif
ahmed yousif - 23.01.2021 19:43

FileNotFoundError: [Errno 2] No such file or directory

Ответить
Kshitiz Neupane
Kshitiz Neupane - 22.01.2021 15:45

programiz app and website are awesome and this channel is providing to get the learnt things easier . thank you

Ответить
Yorgun Demokrat
Yorgun Demokrat - 20.01.2021 20:56

thx man you are the best

Ответить
vigneshwaran prakasham
vigneshwaran prakasham - 20.01.2021 10:20

Bro your programiz website not opening.. Please help me
I'm learn python past one month in your website. These two days not opening.. What can I do..

Ответить
Computer Science Simplified
Computer Science Simplified - 13.01.2021 14:32

Awesome video, keep up the great work! :)

Ответить