I am using to python to write integers to a file named number.dat. Next, I want it to read those numbers written to the numbers.dat file.
I have written the code that works with strings but I want it to accepts integers and read them. Can you help me fix the following code:
myFile = open(“numbers.dat”,’w’)
FileHandle = open(“numbers.dat”,’r’)