coding problem, help needed

Guy Van Rentergem guy.van.rentergem at skynet.be
Sun Sep 3 20:38:30 CEST 2000


Hello people,

I'm fairly new to python and I need help with this problem.

I have a function which is reading a comma seperated string from a data
file:

c:\windows\desktop\terrain.ter,-10.0,-60.0,25.0,128.0,0.0,0.0,0.0,0.0,0.0

... open file then the code which gives problems

line=inffile.readline()
L1=string.split(line,',')
path=L1[0]
value1=L2[1]

.....

The values are ok but path is something like 'c:\\w'

What is going wrong?

thanks for your help,

Guy Van Rentergem





More information about the Python-list mailing list