This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Ultrasick
Recipients Ultrasick
Date 2009-03-24.17:24:54
SpamBayes Score 5.9694758e-05
Marked as misclassified No
Message-id <1237915497.04.0.963901802383.issue5554@psf.upfronthosting.co.za>
In-reply-to
Content
--------------------------------------------------------
# open the file
file = open('F:/test.bmp', 'r')

# read the content
content = file.read()

# close the file
file.close()

print "len(content): " + str(len(content))
--------------------------------------------------------
Returns

len(content): 1522

on my computer. But it should be something like

len(content): 1248858
History
Date User Action Args
2009-03-24 17:24:57Ultrasicksetrecipients: + Ultrasick
2009-03-24 17:24:57Ultrasicksetmessageid: <1237915497.04.0.963901802383.issue5554@psf.upfronthosting.co.za>
2009-03-24 17:24:55Ultrasicklinkissue5554 messages
2009-03-24 17:24:55Ultrasickcreate