I've found an inconsistent behavior of python.
Under Windows if the file changes the program will notice. Under Linux the program will not notice.
I am using python 3.6.8 and Ubuntu 18.04.
Is this a bug or do I something wrong?
import time
if __name__ == '__main__':
file = open('CurrentData.txt', 'r')
while True:
lines = file.readlines()
print(lines)
time.sleep(1)
file.seek(0)
file.close()