How to know the text files developed in particular OS like UNIX or Windows using Java : I want to know the which Operating System(EX:UNIX or Windows or MAC) is used to Develop Text File and it's File Format(EX:UTF-8 or ANSI or DOS) by using Java.If I read one text file using Java Application, I want to know which Operating System is used to develop that File and it's File Format.How to do this using Java Application.Please give me some suggestions.