Hi all, i have to search for a particular PDF file among a collection of more than 3 hundred thousand files. I m first making a file object and then taking all the file names into a String array for further processing. But on running this, my server is getting hanged. Is this could be because of very large number of file names in the string array? Could there be some other data structure which can give better performance thanx
Could you be clearer about what you are trying to achieve, ie why are you looking for this file. Also, 300,000 files is a lot! How are these stored? Do you have all 300,000 in one directory (is this possible?).
Could try harder
Joined: Apr 20, 2006
hi the files are reports which get generated periodically. The requirements are in a way that require these many files to be present in a single directory at a time(300,000 is the maximum limit...no of files can also less than this). Also the piece of code which is giving problem is as below:
File file = new File("D:\\project\\ftp\\Example test invoiced"); String filelst = file.list();