Hi, yes. But I've problems with the line feed character. My first steps: <dtml-with "_.namespace(var1=_.string.split(_['configfile'],':'))"> <dtml-var var1> </dtml-with> I'd like to write the content to an array. What's the best way to do that. Can't find it out. Thank you - Marcus - Zitiere "Thomas B. Passin" <tpassin@mitretek.org>:
Do a split on the ':'. It will give you a list containing the three parts.
[Marcus Schopen]
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 ...
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )