Two small problems

Martin Johansson 045521104 at telia.com
Mon May 7 08:16:57 EDT 2001


1. I have i textfile named links.
and I want to have the first line in that file as a string.
h.putrequest('GET', '/vss/handpc/nyheter/0,2183,138_nyheter_1022,00.html')
instead of /vss/handpc and so on I want the first line from the file how
could I solve this.

2. And then I wonder if there is any method that can delete all lines i a
textfile??
like f.delete(all)???????

/Martin Johansson
pt00mjo at student.hk-r.se





More information about the Python-list mailing list