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

  • @BroCodez
    @BroCodez3 жыл бұрын

    try: with open('test.txt') as file: print(file.read()) except FileNotFoundError: print("That file was not found :(")

  • @onurbicer6643

    @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

    @ais_hkn6248

    11 ай бұрын

    @@onurbicer6643 sağ tıkla hacı

  • @BigBrother4Life
    @BigBrother4Life3 жыл бұрын

    I cannot beleive this 100/100 quality is free.

  • @zaydarendse2812
    @zaydarendse281210 ай бұрын

    I'm going to be spending much more time watching and practicing your content, thanks again!!

  • @TWNanashi
    @TWNanashi3 жыл бұрын

    Thank you for your tutorial!

  • @danic55
    @danic55 Жыл бұрын

    Thanks a lot for this! this was the only video that helped me.

  • @user-mg4kw8zp4p
    @user-mg4kw8zp4p11 ай бұрын

    Amazing as always bro!

  • @LilGeegee
    @LilGeegeeАй бұрын

    thank you for the vid it helped!

  • @piotrkopcewicz5227
    @piotrkopcewicz52272 жыл бұрын

    Amazing tutorial !! thx

  • @hul8376
    @hul83762 жыл бұрын

    very good videos high quality content

  • @irvingpurata2939
    @irvingpurata29393 жыл бұрын

    Hey, Bro. Im going over all of your playlist!

  • @user-os5ky3zh8r
    @user-os5ky3zh8r3 ай бұрын

    You are the best thanks for the knowledge bombs ^^

  • @airlanggak5391
    @airlanggak53913 жыл бұрын

    thanks a bunch!

  • @notbastian1887
    @notbastian18872 жыл бұрын

    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

    @Giodidthat

    Жыл бұрын

    Hiiii😅😅😅❤❤❤😂😂😂🎉🎉🎉😢😢😮😅

  • @UserCS-pj3ju
    @UserCS-pj3ju11 ай бұрын

    Well explained 👏🏻

  • @Monster-im6nu
    @Monster-im6nu Жыл бұрын

    Amazing tutorial

  • @nubbunhout683
    @nubbunhout6838 ай бұрын

    Thanks for the information

  • @olaffr
    @olaffr11 ай бұрын

    Bruh! Thank u🎉❤

  • @Bosy99616
    @Bosy996166 ай бұрын

    thank you, man

  • @musisir1927
    @musisir19272 ай бұрын

    Great

  • @tarikyassa1076
    @tarikyassa10763 жыл бұрын

    Thanks bro!

  • @bekturasanbekov1979
    @bekturasanbekov1979 Жыл бұрын

    thx 4 vid bro!

  • @tara2337
    @tara23374 ай бұрын

    you rock Brooo

  • @superstark9999
    @superstark99992 ай бұрын

    Ty

  • @varunwind
    @varunwind2 жыл бұрын

    Thank you.

  • @Jeengogogo88727
    @Jeengogogo887276 ай бұрын

    thank u very many

  • @kemann3815
    @kemann38152 жыл бұрын

    Awesome

  • @Vertig_Pro
    @Vertig_Pro Жыл бұрын

    833k subs good job bro

  • @nyiaung4963
    @nyiaung49633 ай бұрын

    really good lesson

  • @faatimahbax

    @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?

  • @manuelvaal1257
    @manuelvaal12572 жыл бұрын

    enjoying it

  • @lw9954
    @lw9954 Жыл бұрын

    Thank you Brotaro

  • @hitmanmubeen3948
    @hitmanmubeen3948 Жыл бұрын

    Thank you

  • @wesing7406
    @wesing7406 Жыл бұрын

    Good video

  • @beingzero7541
    @beingzero75412 жыл бұрын

    Wow!

  • @boipelomodiesentsho9261
    @boipelomodiesentsho92612 ай бұрын

    10/10 stuff

  • @medblbn7171
    @medblbn7171 Жыл бұрын

    The best

  • @elmangazayi320
    @elmangazayi3203 жыл бұрын

    great

  • @pumpkineers3560
    @pumpkineers35604 ай бұрын

    the goat

  • @HussainAli-sb1dv
    @HussainAli-sb1dv9 ай бұрын

    love you

  • @user-vr2si8on9f
    @user-vr2si8on9f Жыл бұрын

    cannot beleive this quality is free

  • @spartanranger
    @spartanranger3 жыл бұрын

    Have a nice day Bro

  • @KylianMbappe07303
    @KylianMbappe07303 Жыл бұрын

    3:28 how do we output if the file is indeed present

  • @uuhju7004
    @uuhju70043 жыл бұрын

    nice

  • @Haryad-nh5kc
    @Haryad-nh5kc2 жыл бұрын

    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

    @CyberTronics

    11 ай бұрын

    agreed, didnt explain what with or open means, went straight into the technial details ):

  • @Vital_As
    @Vital_As Жыл бұрын

    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

    @damnI_mbad

    4 ай бұрын

    You didn't how much time I spent looking for this information

  • @Harry_Kane_Jr
    @Harry_Kane_Jr Жыл бұрын

    thanks

  • @jamesxamploo1269
    @jamesxamploo12692 жыл бұрын

    🙏🙏

  • @user-lj8lf9fr1i
    @user-lj8lf9fr1i11 ай бұрын

    how to create the file in the python console please do tell

  • @pbsmoothie7281
    @pbsmoothie7281 Жыл бұрын

    YT algorithm comment

  • @jamesgregory4880
    @jamesgregory48805 ай бұрын

    Does this work for docx. and pdf files

  • @itachu.
    @itachu.8 ай бұрын

    beat the algorithm

  • @ahmetaydn4416
    @ahmetaydn44162 жыл бұрын

    yehuuuuu

  • @mrnobody778
    @mrnobody778 Жыл бұрын

    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

    @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

  • @ZaidWaseem-sg4nj
    @ZaidWaseem-sg4nj3 күн бұрын

    wat abt the

  • @DarkAcademyUniversity
    @DarkAcademyUniversity5 ай бұрын

  • @MissKrake
    @MissKrake Жыл бұрын

    🛋😌🤓

  • @abhaythecuber1837
    @abhaythecuber183720 күн бұрын

    hewo

  • @francisjacquart9618
    @francisjacquart96182 жыл бұрын

    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

    @pyxlleaf6275

    2 жыл бұрын

    What is try:

  • @blueberrycheesecake6790
    @blueberrycheesecake67903 жыл бұрын

    Here's a comment

  • @techlace1195
    @techlace1195 Жыл бұрын

  • @abdallahbouali7058
    @abdallahbouali70583 ай бұрын

    coment✍(◔◡◔)✍(◔◡◔)

  • @orfredymelobeltran5237
    @orfredymelobeltran52372 жыл бұрын

    im lazy to tipe annything ._.

  • @ebenfalls9929
    @ebenfalls99292 жыл бұрын

    comment

  • @mariusgrobler
    @mariusgroblerАй бұрын

    .

  • @Joshua_t_
    @Joshua_t_ Жыл бұрын

    comment

  • @kasmeneyes2227
    @kasmeneyes2227 Жыл бұрын

  • @camilla.callow8
    @camilla.callow818 күн бұрын

    comment

Келесі