Will using pickle be the fastest and most reliable way to write a whole to a text file?
Here is the syntax that I still have:
import pickle pickle.dump(obj, file)
If there is a more reliable alternative, please let me know.
My use case records user input:
n=int(input("Enter a number: "))
- Yes, a person will need to read it and possibly edit it
- There will be 10 numbers in the file.
- Python may need to be read later.
source share