Here is a function that wraps calls around the write function and allows multiple arguments:
Code:
def writeData(f,*args):
f.write(''.join([str(v) for v in args]))
Here is some code that will use this function:
Code:
writeData(tracking_data,'*** Reached point ' + letter + 'in', clock(), 'seconds' + '\n')