I've written a script that should continuously check whether a file has increased in size or not. I tried simply linking to a file which I can update from another desktop, but nothing happens. Does anyone know how to check the file I've updated through ssh without having to restart the program? I'm looking for answers that I can use on a Linux system (Raspberry Pi 3B).
Thank you in advance!
Code that checks the files:
streampos fileSizeReference = 0;
fatream fileReader("some/random/file.txt", ios::int | ios::out);
fileReader.seekg(0, ios::end);
if( fileReader.tellg() > fileSizeReference ) {
update();
}