read file directly to test if it's an EDF file, don't trust extensions