It really depends how much information you want to save for each of these files. 10000 elements in a Vector (or better yet, ArrayList) is no problem. But if, for example, you're saving the complete contents of the file as a
String, and putting
that in the Vector, then you'll use a lot more memory. (As an estimate, take the total size of all the files on disk, and double it (for ascii-to-Unicode conversion).) Still possible (esp if the files are small), but questionable. You might discover it's not really necessary to save all that info anyway. Depends what data you need, and what you're doing with it...