readline() & seek() ???
DataSmash
rdh at new.rr.com
Thu Jun 5 08:48:18 EDT 2008
On Jun 5, 3:50 am, Carl Banks <pavlovevide... at gmail.com> wrote:
> On Jun 4, 5:30 pm, DataSmash <r... at new.rr.com> wrote:
>
> > Hi group,
> > I have a text file that contains thousands of lines and each line is
> > 256 characters long.
>
> > This is my task:
> > For each line in the file, move to the 25th character, if the
> > character is a "T",
> > move to the 35th character of the line and read 5 characters from
> > there.
> > Capture these 5 characters and write them to a new text file, each 5
> > characters separated by a comma.
>
> Your professor possibly reads comp.lang.python, and if so, is likely
> to know how to track you down with your IP address.
>
> Carl Banks
Marc, Thanks.
Tim, Thanks for the code. It's a easy task IF you know what to look
for. I didn't.
Carl, I'm not a student. Was just looking for some ideas.
More information about the Python-list
mailing list