Apparently Properties file is not meant to be read dynamically. In other words, I cannot go through a directory and create Properties files basd on available files that have attribute=value format. Pleass, could someone show me the way on how to go about doing the above. I need to read values from files and upload them onto table.
I am using the load method but the execution doesn't make it that far. The funnier (or more upsetting) thing is that it sees the file but then it throws FileNotFoundException and sometimes NullPointerException on my face.
Med, Post some code and we'll see if we can get to the bottom of this. Junilu
Med Shabe
Ranch Hand
Joined: May 08, 2001
Posts: 84
posted
0
I've tried making this as short as possible: Let me know if you need more. Appreciate you guys looking into this. dataFile is of type String, that's what getFileWithExtension returns. ICONFEED is of Properties type. Program does not makes it beyond the while. . . . while ((dataFile = getFileWithExtension(dirPath, fileExt))!= null ) { if (dataFile == null) System.out.println(dataFile + "not found!"); System.out.println("File: " + dataFile); FileInputStream fisdat = new FileInputStream(dataFile); boolean Renresult = copyFile(dirPath,logDir); System.out.println("Moving" + dataFile);