On 21 Nov 2005 13:59:12 -0800, [EMAIL PROTECTED] wrote:
>I tried the solutions you provided..these are not as robust as i
>thought would be...
>may be i should put the problem more clearly...
>
>here it goes
>
>I have a bunch of documents and each document has a header which is
>common to all
I tried the solutions you provided..these are not as robust as i
thought would be...
may be i should put the problem more clearly...
here it goes
I have a bunch of documents and each document has a header which is
common to all files. I read each file process it and compute the
frequency of w
[EMAIL PROTECTED] writes:
> thanks for that. But this will check for the exact content of the
> "start of block.." or "end of block". How about if the content is
> anywhere in the line?
Then the test is '"start of block." in line'. You could also use
the line.find or line.index methods, b
thanks for that. But this will check for the exact content of the
"start of block.." or "end of block". How about if the content is
anywhere in the line?
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] writes:
> Hi I need help. What I want to do is If I read a file with some text
> content...
> I would like to ignore a block of lines and consider the rest..
> so if the block starts with
>
> "start of block."
> fjesdgsdhfgdlgjklfjdgkd
> jhcsdfskdlgjkljgkfdjkgj
> "end
pkilambi> I would like to ignore a block of lines and consider the
pkilambi> rest.. so if the block starts with
pkilambi> "start of block."
pkilambi> fjesdgsdhfgdlgjklfjdgkd
pkilambi> jhcsdfskdlgjkljgkfdjkgj
pkilambi> "end of block"
pkilambi> I want to ig
Hi I need help. What I want to do is If I read a file with some text
content...
I would like to ignore a block of lines and consider the rest..
so if the block starts with
"start of block."
fjesdgsdhfgdlgjklfjdgkd
jhcsdfskdlgjkljgkfdjkgj
"end of block"
I want to ignore this while proc