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