Originally Posted by
caps_lock
post above: thanks for that, but I dont want to list the roots I want to list the files and files in directories that are in all directories on a computer.
Then what was this?
Originally Posted by
caps_lock
I want it to be able to go through all roots (drives)...
With no user intervention, so without including "C:\\" or "." as a string in the source, or without a TextIO.java class.
As that is the part I was responding to. You will
need to use that.
I think Ive got some stable code now. But I still want to know how to recursive scan the whole computer and not just a drive. At the moment I'm able to scan "C:\\" or "D:\\" and not both, does any one know how I can make that work?
See above. You can only "recursively" scan each drive/root one at a time. But you can loop over what the above mentioned method returns.
Why does no one ever listen to what I say? Java Programmer and Sun Systems Administrator
----------------------------------------------
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan