from __future__ import division
from scipy import *
import Ball

# Write something to a file
f = open('lesson.write','w')  # Open file for writing and replace all existing data
f.write("I can't think of anything.\n")
f.close()

# Append something to the file
f = open('lesson.write','a')  # Open file for appending
f.write('It is quarter to 10.\n')
f.close()

# Read back the information
f = open('lesson.write','r')  # Open file for reading
text = f.read()
f.close()

print text

