hi, i tried this, my problem is that the file isfrom a python list - here is the code i have so far:
http://paste.lisp.org/+22E5/1 as the first line for each item contains the 'title' which has different tags, i want to find a way to strip this out. any advise much appreciated On Mon, Mar 15, 2010 at 5:23 PM, Rafik Ouerchefani <[email protected]> wrote: > Hi, > > assuming that your content is in input.txt, you can do : > >>>> f = open("/path/to/content.txt") >>>> f.readline() > > it will return the first line only > > cheers, > > - Rafik > _______________________________________________ Tutor maillist - [email protected] To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
