(Jun-08-2018, 02:05 PM)buran Wrote: you are kidding, right? https://docs.python.org/3/tutorial/input...le-objects and https://docs.python.org/3/tutorial/input...-with-json if you want to use json (better, because you get structured data) there are numerous examples how to read and write to fileCan i just get a straight answer? I followed EXACTLY what the document said and got an error.
Believe me, the sooner you learn to use the docs, the better
I tried something different and got an error:
import pickle control = True control = Control(...) with open('savefile.dat', 'wb') as f: pickle.dump([control], f, protocol=2)And got the error
Error:Control is not defined
So i changed the code to thisimport pickle control = True control = control(...) with open('savefile.dat', 'wb') as f: pickle.dump([control], f, protocol=2)And got the error
Error:'bool' object is not callable
Self-taught HTML, CSS, Python, and Java programmer