[Solved] Why is len(file.read()) giving me a value of zero?
Files act like a long tape in a casette; you can read the file but by the time you are done you have passed the tape all the way to the end. Reading again won’t give you the data again. As such your second function tried to read data from a file that is already … Read more