Reading, editing and saving a txt file

Terry Reedy tjreedy at udel.edu
Wed Nov 5 14:00:15 EST 2008


Artur Sousa wrote:
> Hi everyone.
> What I'm trying to do is a Python script that reads a txt file with the 
> following structure:
...
> I've already started some programming, but I'm stuck.

You started from the bottom up.  Now also try from the top down.  What 
should be the main structure of your program?  Ignoring details, is 
there a top-level switch or loop?  When you have that, you can cut and 
paste snippets already written into that structure.

tjr




More information about the Python-list mailing list