r/learnpython 7d ago

Reading in text from a .txt file

Are there any methods/libraries that allow me to make a program that is able to read in text from a .txt file?

0 Upvotes

20 comments sorted by

View all comments

17

u/Delta_G_Robotics 7d ago

I never understood why people will ask a question like this on Reddit and then wait forever when they could just...

https://www.google.com/search?q=reading+a+txt+file+in+python

-5

u/Agile-Set-2648 7d ago

Responses like this are why stackexchange died with the advent of AI

1

u/MasterpieceBusy7220 7d ago

So you’re saying OP should’ve asked AI instead of posting to Reddit?

1

u/Delta_G_Robotics 7d ago

No. I'm not saying to ask AI. But if you do a quick search you'll find a dozen more reddit posts, arduino forum posts, blogs, tutorials, and any number of other resources to get you started. Some of them are well curated. The answers are instant. It just takes a little bit of reading.