I can't see why it won't verify the second condition. When I run it on my pc without arguments at all or just "-u" or "-d" the program doesn't change the content of the file..