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
I think it's simpler doing:
number = 1337 with open('filename.txt', 'w') as f: f.write('%d' % number)
But it really depends on your use case.