Java concentrates all sorts of file related methods in the java.io.File class. That is where you should start looking.
For details that File can't provide you (like version number) you will probably have to go to operating system specific methods.
Joined: Feb 21, 2007
Thanks for you reply.but through File class we can able to find out some properties like is it hidden or not.but i want to find out the properties like File version,author,title,disk on size .i couldn't found any methods in the standard api.Please help me if any body knows it..
Author and all-around good cowpoke
Joined: Mar 22, 2000
.i couldn't found any methods in the standard api
There is a very good reason for that - the designers intend Java to run on as many operating systems as possible, therefore the standard library only contains functions that can reasonably be expected to work everywhere.
You are asking about file properties that are NOT industry standards or portable across multiple operating systems. You are going to have to dig into the details of each type of file format on a case by case basis.