I have now created another .csv file that contains just one number.
I just need to be able to read the number back in another program and place it in the variable 'detect'.
I have tried using the following code (and many variations on it), without success.
Code: Select all
detect =0
file = open('my_file.csv', 'r')
detect = file.read ()
file.close()
print ('detect')Thanks.