Python read a file 🔍
Ғылым және технология
Python reading files tutorial example explained
#python #read #file
try:
with open('test.txt') as file:
print(file.read())
except FileNotFoundError:
print("That file was not found :(")
------------------------------
Up In My Jam (All Of A Sudden) by - Kubbi / kubbi
Creative Commons - Attribution-ShareAlike 3.0 Unported- CC BY-SA 3.0
Free Download / Stream: bit.ly/2JnDfCE
Music promoted by Audio Library • Up In My Jam (All Of A...
------------------------------
Пікірлер: 74
try: with open('test.txt') as file: print(file.read()) except FileNotFoundError: print("That file was not found :(")
@onurbicer6643
Жыл бұрын
How did you make such a text file as in the video? I mean how did you put that text file in your project folder?
@ais_hkn6248
11 ай бұрын
@@onurbicer6643 sağ tıkla hacı
I cannot beleive this 100/100 quality is free.
I'm going to be spending much more time watching and practicing your content, thanks again!!
Thank you for your tutorial!
Thanks a lot for this! this was the only video that helped me.
Amazing as always bro!
thank you for the vid it helped!
Amazing tutorial !! thx
very good videos high quality content
Hey, Bro. Im going over all of your playlist!
You are the best thanks for the knowledge bombs ^^
thanks a bunch!
You videos are mazing, they help me out a ton. Could you please also explain how to make such a file as you did in the video?
@Giodidthat
Жыл бұрын
Hiiii😅😅😅❤❤❤😂😂😂🎉🎉🎉😢😢😮😅
Well explained 👏🏻
Amazing tutorial
Thanks for the information
Bruh! Thank u🎉❤
thank you, man
Great
Thanks bro!
thx 4 vid bro!
you rock Brooo
Ty
Thank you.
thank u very many
Awesome
833k subs good job bro
really good lesson
@faatimahbax
3 ай бұрын
Hey, don't know if you're going to see this but just wanted to know how to get a file into your project folder using the IDE IDLE?
enjoying it
Thank you Brotaro
Thank you
Good video
Wow!
10/10 stuff
The best
great
the goat
love you
cannot beleive this quality is free
Have a nice day Bro
3:28 how do we output if the file is indeed present
nice
Your videos are best, but if you could u explain a bit more , for example I'm beginner so I didn't actually know how to move the files or some functions in previous videos that I have used, now these videos are gone and it's about to be 2022 but for more videos try to explain a bit better, thanks bro❤
@CyberTronics
11 ай бұрын
agreed, didnt explain what with or open means, went straight into the technial details ):
If you don't know how to open a text file in python: Go to file in the left upper part of the program Click in open "You will need to know the location of the file (This was show in the last video of this channel)" Find the file and click it Done!
@damnI_mbad
4 ай бұрын
You didn't how much time I spent looking for this information
thanks
🙏🙏
how to create the file in the python console please do tell
YT algorithm comment
Does this work for docx. and pdf files
beat the algorithm
yehuuuuu
I need some help This is the code in my text.tx file hello s tim python learning easy Problem is,when i put the code it only shows this hello It's only the first line of the txt file and i don't know why
@darkkebab7785
16 күн бұрын
write your changes in the "file name.txt" tab not in the notepad itself if you didnt understand give me any of your socials to send you a video
wat abt the
🛋😌🤓
hewo
I JUST FOUND THE ERROR : IT IS THE... except FileNotFoundError: print("That file was not found :(") BLOCK I JUST REMOVED IT AND NOW THE SCRIPT WORKS WITHOUT ANY PROBLEM
@pyxlleaf6275
2 жыл бұрын
What is try:
Here's a comment
coment✍(◔◡◔)✍(◔◡◔)
im lazy to tipe annything ._.
comment
.
comment
comment