Hello,
I am beginner in Python and I need your guidance about the task I am given. I have to read a laser data file in python and then add two new columns to the data and fill them with specific integer values. I was able to read the file but was not successful in adding the new columns.I would be happy if you can kindly help me with it.
I am beginner in Python and I need your guidance about the task I am given. I have to read a laser data file in python and then add two new columns to the data and fill them with specific integer values. I was able to read the file but was not successful in adding the new columns.I would be happy if you can kindly help me with it.
Code:
f = file("E:/SAGA/data/325125404.all", "r")
>>> f.read()
>>> w = file("E:/SAGA/data/325125404a.all", "w")
>>> t=[]
>>> for line in f.readlines():
t.append('\n',1)
w.writelines(t)
w.close()
Comment