In python when you open a file using open method it returns file object. Can we use this object to read multiple times?
If yes then why it is not working for me. I am using pyhon2.7.2 version
 from sys import argv
 script, filename = argv
 txt = open(filename)
 print "Here is your file %r" % filename
 # Reads the complete file into the txt variable
 print txt.read()
 # Here i am using txt file object again to read byte by byte of the file
 # which doesn't seem to be working.
 print txt.read(1)
any reasons why its not working?
 
    