Hi all...

I have a problem related to saving variables into a .csv file. I have a file called coordinate.csv.

in the coordinate.csv file there are variables as follows :

Row 0 Row 1

column : 0 ---> T-Coordinate S-Coordinate

column: 1---> 40 | 0 | 0 | 70 | 3 0 | 0

let say, i want to change variable in column 1 with the new one, for example : 50 | 20 | 0 | 70 | 3 0 | 0

so my coordinate.csv will be countain data as follows:

Row 0 Row 1

column : 0 ---> T-Coordinate S-Coordinate

column: 1---> 50 | 20 | 0 | 70 | 3 0 | 0

i have a code like this:

fb.write(str(50)+","+str(20)+","+str(0)+","+str(70)+","+str(30)+","+str(0))

fb.close()

but instead rewrite the exact value in column 1, it became:

Row 0 Row 1

column : 0 ---> T-Coordinate S-Coordinate

column: 1---> 40 | 0 | 0 | 70 | 3 0 | 0 |50 | 20 | 0 | 70 | 3 0 | 0 | 50 | 0 | 0 | 70 | 3 0 | 0 |50 | 20 | 0 | 70 | 3 0 | 0 ---> going inifinity

how I should i do it? please let me know if there is a certain way to do.....thanks all