Cro wrote:
Good day. I have installed Python 3 and i have a problem with the builtin read() function.[code] huge = open ( 'C:/HUGE_FILE.pcl', 'rb', 0 ) import io vContent = io.StringIO() vContent = huge.read() # This line takes hours to process !!! vSplitContent = vContent.split ( 'BIN;SP1;PW0.3,1;PA100,700;PD625,700;PU;' ) # This one i have neve tried... [/code]
Do you really mean io.StringIO? I guess you want io.BytesIO() .. Christian -- http://mail.python.org/mailman/listinfo/python-list