Would using the pickle function be the fastest and most robust way to write an integer to a text file?
Here is the syntax I have so far:
import pickle p
The following opens a while and appends the following number to it.
def writeNums(*args): with open('f.txt','a') as f: f.write('\n'.join([str(n) for n in args])+'\n') writeNums(input("Enter a numer:"))