The20
(?)Community Member
- Report Post
- Posted: Mon, 04 Feb 2013 19:09:23 +0000
So, i wanted to test something. To that end i wrote a program that creates 1 million files in a single folder.
I made two errors:
- i used the root folder of a drive instead of a separate folder
- i didn't realize that File.Create returns a file stream, so (i canceled the program after about 250k files) i had 250k open file pointers or something. And the program crashed ...
I changed it to delete all this crap now. Good thing i didn't use random file names, too ...
Edit: On a side note, do you guys happen to know the average length of file names on your systems? Just a little something i would like to know. For me it was about 20 characters (OS is Windows).
I made two errors:
- i used the root folder of a drive instead of a separate folder
- i didn't realize that File.Create returns a file stream, so (i canceled the program after about 250k files) i had 250k open file pointers or something. And the program crashed ...
I changed it to delete all this crap now. Good thing i didn't use random file names, too ...
Edit: On a side note, do you guys happen to know the average length of file names on your systems? Just a little something i would like to know. For me it was about 20 characters (OS is Windows).