Hi,

I'm intend to do the following
-do a calculation ; record the value with timestamp to excel (csv format will do)
-repeat above step; append a new row to csv with newly calculated value and timestamp.
...
...
continue in endless loop.

Could someone give me some pointers on this.

fd = open('my.csv','a') 
fd.write(myCsvRow) 
fd.close()

This should do the append bit, but stumped as to how to code the entire thing....

Thanks
David

CSV is better with a dict,
I wrote some script here in daniweb. search for it.

The dict with incremental keys that will help with your rows and columns.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.