Revision 1 as of 2011-12-17 17:21:31

Clear message

Asking for Help: ...

...

I am writing a program that uses text files to store user information like their name and password. I am using this information to check login info against the info they have provided. This never worked so I decoded to do a simple open files program to find the problem. f = open('test.txt', 'r') a = f.read f.close print(a)

and when I ran it on Idle it printed: <built-in method read of _io.TextIOWrapper object at 0x02954558> Instead of what I had in my text file. Does anyone know why this is happening or how to stop it?

When answering questions, add the CategoryAskingForHelpAnswered category when saving the page. This will move the link to this page from the questions section to the answers section on the Asking for Help page.


CategoryAskingForHelp

Unable to edit the page? See the FrontPage for instructions.