I am writing a program that open a directory inputed from user and get the files on it, then check the 4 first bytes of files, to see if it is a pdf! For that I am using a