Hello All:
I have following code ... which read all the files in the folder ... I would like to read only pdf files ... I am new to Java please help me...
String readSourceLocation(){
File myFolder = new File(m_config.getValue("SOURCE_LOCATION"));//"C:\\myDocuments");
File allMyFolderObjects[] = myFolder.listFiles();
String src = allMyFolderObjects[0].toString();
System.out.println("~~~~~~~~~~~ Source : " + src);
return src;
}
