if you know the file extension than you can usually determine what language it is written in. ie. *.c is c, *.cpp is c++, *.java is java, *.pl is perl, *.sh is a bash shell script