[Tutor] Solved Int to String/Problem about Overwriting

Daniel Yoo dyoo@hkn.EECS.Berkeley.EDU
Sun, 20 Aug 2000 14:50:27 -0700 (PDT)

> was but I just forgot all about it;))Anyway, I got the program to work but I 
> got one more problem: When I say 'n' to the 'save file?' part, it erases 
> whatever was saved on that file before. I know it has something to do with 

Right.  (Write.  *grin*)

Write mode will zero out the file --- it assumes you want to start
from scratch.  You'll want to open the file using "append" mode to
maintain what was in the file.

  open('slope.txt', 'a')

should do it.