Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
i work on a project that collecting files from a selected directory and placing the content of files into an SQL server. At this point i wonder whether directory.getfiles method can handle 400.000 files in a directory.Can i obtain the returning of directroy.getfiles method for 400.000 files and store the returnings into a string variable.

Does this cause overflow error with default settings , or how can i hande this situation?

Thanks in advance.
Posted

9 out of 10 intelligent people would test to see if this worked, instead of assuming that some random stranger would know the answer, and trusting an answer from someone they don't know when it's trivial to test for the answer yourself. I suspect it will work fine, given that all it returns is an array of filenames.

Why on earth do you expect to have that many files in a folder ?
 
Share this answer
 
Why don't you try it? This will be a collection of strings. I don't think there will be any performance or overflow issue at all.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900