coding problem, help needed

Erik Max Francis max at alcyone.com
Sun Sep 3 14:41:32 EDT 2000


Guy Van Rentergem wrote:

> line=inffile.readline()

Note that the line returned by File.readline will return a trailing
newline.

> L1=string.split(line,',')
> path=L1[0]
> value1=L2[1]
> 
> .....
> 
> The values are ok but path is something like 'c:\\w'

I submit you're doing something else wrong along the way; this should
work fine (provided the path doesn't contain any commas, obviously).

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ The believer is happy; the doubter is wise.
\__/ (an Hungarian proverb)
    The laws list / http://www.alcyone.com/max/physics/laws/
 Laws, rules, principles, effects, paradoxes, etc. in physics.



More information about the Python-list mailing list