I need each value to be on its own line in the text file, so I am using this to write the value to the text file:
Expand|Select|Wrap|Line Numbers
- written=str(currenttotal)
- squarerootfile.write(written)
- squarerootfile.write("\n")
squarerootfile is the object for the file it is written to
Then I run the text file through another program that plots the line number as the x coordinate and the value as the y coordinate. The program reads the file using this:
Expand|Select|Wrap|Line Numbers
- path="c:\\pythonfiles2\\totalsqrt32.txt"
- input=file(path)
- input.readline()
Thank you,
Gordon