file Determine file type