I'm writing a program in which I need the program to verify if there is new content in a file. If the file HAS content, but the content has already been viewed previously by the user, it doesn't count as a notification, but if it is new, it is shown to the user.
How do I do this?