Python 3 read() function
Christian Heimes
lists at cheimes.de
Thu Dec 4 11:48:27 EST 2008
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
More information about the Python-list
mailing list