Norman Rieß, 19.02.2010 13:42:
> i am trying to read a large bz2 file with this code:
>
> source_file = bz2.BZ2File(file, "r")
> for line in source_file:
> print line.strip()
>
> But after 4311 lines, it stoppes without a errormessage. The bz2 file is
> much bigger though.
Could you send in
Am 19.02.2010 22:24, schrieb Lie Ryan:
> On 02/20/10 07:49, Norman Rieß wrote:
>
>> Am 19.02.2010 21:42, schrieb Lie Ryan:
>>
>>> On 02/19/10 23:42, Norman Rieß wrote:
>>>
>>>
Hello,
i am trying to read a large bz2 file with this code:
source_file = bz2.BZ
Am 19.02.2010 22:03, schrieb Kent Johnson:
> On Fri, Feb 19, 2010 at 7:42 AM, Norman Rieß wrote:
>
>> Hello,
>>
>> i am trying to read a large bz2 file with this code:
>>
>> source_file = bz2.BZ2File(file, "r")
>> for line in source_file:
>>print line.strip()
>>
>> But after 4311 lines, it
On 02/20/10 07:49, Norman Rieß wrote:
> Am 19.02.2010 21:42, schrieb Lie Ryan:
>> On 02/19/10 23:42, Norman Rieß wrote:
>>
>>> Hello,
>>>
>>> i am trying to read a large bz2 file with this code:
>>>
>>> source_file = bz2.BZ2File(file, "r")
>>> for line in source_file:
>>> print line.strip()
On 02/20/10 07:42, Lie Ryan wrote:
> On 02/19/10 23:42, Norman Rieß wrote:
>> Hello,
>>
>> i am trying to read a large bz2 file with this code:
>>
>> source_file = bz2.BZ2File(file, "r")
>> for line in source_file:
>> print line.strip()
>>
>> But after 4311 lines, it stoppes without a errormess
On Fri, Feb 19, 2010 at 7:42 AM, Norman Rieß wrote:
> Hello,
>
> i am trying to read a large bz2 file with this code:
>
> source_file = bz2.BZ2File(file, "r")
> for line in source_file:
> print line.strip()
>
> But after 4311 lines, it stoppes without a errormessage. The bz2 file is
> much bigg
Am 19.02.2010 21:42, schrieb Lie Ryan:
> On 02/19/10 23:42, Norman Rieß wrote:
>
>> Hello,
>>
>> i am trying to read a large bz2 file with this code:
>>
>> source_file = bz2.BZ2File(file, "r")
>> for line in source_file:
>> print line.strip()
>>
>> But after 4311 lines, it stoppes without a
On 02/19/10 23:42, Norman Rieß wrote:
> Hello,
>
> i am trying to read a large bz2 file with this code:
>
> source_file = bz2.BZ2File(file, "r")
> for line in source_file:
> print line.strip()
>
> But after 4311 lines, it stoppes without a errormessage. The bz2 file is
> much bigger though.
Am 19.02.2010 17:04, schrieb Steven D'Aprano:
> My guess is one of two things:
> (1) You are mistaken that the file is bigger than 4311 lines.
>
> (2) You are using Windows, and somehow there is a Ctrl-Z (0x26)
> character in the file, which Windows interprets as End Of File when
> reading files
Norman Rieß, 19.02.2010 13:42:
> i am trying to read a large bz2 file with this code:
>
> source_file = bz2.BZ2File(file, "r")
> for line in source_file:
> print line.strip()
>
> But after 4311 lines, it stoppes without a errormessage.
What does "stops" mean here? Does it crash? Does it exit
On Fri, 19 Feb 2010 11:42:07 pm Norman Rieß wrote:
> Hello,
>
> i am trying to read a large bz2 file with this code:
>
> source_file = bz2.BZ2File(file, "r")
> for line in source_file:
> print line.strip()
>
> But after 4311 lines, it stoppes without a errormessage. The bz2 file
> is much bigg
Hello,
i am trying to read a large bz2 file with this code:
source_file = bz2.BZ2File(file, "r")
for line in source_file:
print line.strip()
But after 4311 lines, it stoppes without a errormessage. The bz2 file is
much bigger though.
How can i read the whole file line by line?
Thank you.
12 matches
Mail list logo