little help
Jordan Krushen
jordan at krushen.com
Sun May 11 02:13:43 EDT 2003
On Sun, 11 May 2003 06:09:35 GMT, Jordan Krushen <jordan at krushen.com>
wrote:
> ===
> import glob
>
> for diaryName in glob.glob('/some/dir/here/*.txt'):
> lines = open(diaryName).readlines()
> diaryTitle = lines[0].strip()
> diaryDesc = lines[1].strip()
> print diaryTitle
> print diaryDesc
> print ===
Opera seems to be munging my code. Some (unimportant) newlines are
missing, and that last print === should just be an empty print.
J.
More information about the Python-list
mailing list