LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   easy python code (https://www.linuxquestions.org/questions/programming-9/easy-python-code-280383/)

JoeUser11 01-20-2005 11:30 PM

easy python code
 
Can anybody here give me an example of a simple python program that reads a text file (let's say /home/joeuser/ex.txt) into a string, then prints it to the screen?

I'm nearly certain I know how to do it (I've done it before), but for some reason I'm getting an error. I suspect my python libraries are screwed up.

Mega Man X 01-21-2005 01:40 AM

Tell us how you are doing, so we can debug it ;). Link:

http://www.python.org/doc/current/tu...00000000000000


All times are GMT -5. The time now is 11:06 AM.