Checking for file data type