how to check the file data type(ascii or binary)

hi
i am receiving a file from one system , i have to verify the format of the file data i.e whether the data is in acii format or binary format,
please help

thanks in advance
satya

If it is transferred via ftp using ascii or binary mode?
Or the content of the file itself? If second, you can use:

file <yourfile>
1 Like