[Zope] reading text based config file

Marcus Schopen marcus.schopen@uni-bielefeld.de
Sat, 28 Apr 2001 18:50:08 +0200 (CEST)


Hi there,

what's the best way to read a flat file like this line by line and split
each line to three variables?

1:menuname:url
1.1:submenuname:url
1.2:submenuname:url
2:nenuname:url
2.1:sub
...

background: i'd like to create a global navigation dtml-medthod. Only the
configuration file should be replaced depending on the position in the file
system.

Thank you
Marcus