I don’t know how many of you are familiar with the pickle module for saving data to text files, but I’m not sure how to specify where the text file should be saved to. I am using it within the GE, and the process is as follows:
import pickle data = (define what you want to save here) file = open("save_file","wb") pickle.dump(data,file) file.close()
The function “open” specifies the name of the saved file and method of writing it (“wb” being ‘write binary’). If you input “rb”, then it would read the data from the file instead of writing it.
So how would I go about specifying where to save the file? Right now it saves the file to my C drive user folder (windows). Thanks for any help!