Re: [Zope] Reading and parsing a text file object

2006-07-20 Thread Eric Fernandez
Roberto Benitez wrote: The following worked for me: with a file object containing the following text: line one of test file line two of test file line three of test file I was table to parse lines w/ following code: file=%s % context.textfile num=1 for line in file.split(\n): print

Re: [Zope] Reading and parsing a text file object

2006-07-20 Thread blists
Roberto Benitez wrote: file=%s % context.textfile Huh? Isn't that just a weird and probably inefficient way of writing file=str(context.textfile)? ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or

Re: [Zope] Reading and parsing a text file object

2006-07-20 Thread Eric Fernandez
[EMAIL PROTECTED] wrote: Roberto Benitez wrote: file=%s % context.textfile Huh? Isn't that just a weird and probably inefficient way of writing file=str(context.textfile)? Sso I was mistaken when I said \n were removed... I can indeed split by '\n' the result of