Workshop 2008, June 16th-20th

Presentation Slides

Excercise Files

Just the syntax:

self.f = open('workfile', 'w')
self.f.write("CELL ID= %s CELL TYPE= %s volume= %s\n"%(cell.id,cell.type,cell.volume))
self.f.close() 

Note: 'w' writes to a file 'a' or 'a+' appends to a file