prints string if a given file has changed