[Tutor] handling a textfile continued

Luke Paireepinart rabidpoobear at gmail.com
Thu Aug 20 09:05:10 CEST 2009


What have you tried so far and why hasn't it worked?
We prefer not to just give solutions.

On Thu, Aug 20, 2009 at 1:06 AM, Olli Virta <llvirta at gmail.com> wrote:

> Hi!
>
> Sorry. OK I admit I might have been confusing. Although I got some good
> ideas from the messages. Thanks.
>
> Let me try again:
>
> So I got this big textfile. It's full of data from a database. About 200 or
> more rows or lines in a textfile.
> There's three first rows that belong to the same subject. And then next
> three rows belong to another subject and so on, to the end of the file.
>
> What I need to do, is put the three rows that goes together and belong to
> certain subject, on a one single line in the output textfile.
> And that goes with the rest of the data to the end of the new file.
>
> Thanks. OV
>
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090820/aec58e61/attachment-0001.htm>


More information about the Tutor mailing list