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

Reply via email to