How to list all open files and dir using java?
How to get the all open files,doc,开发者_JAVA技巧and dir details in java applet or console?
You can't do that. There are security restrictions on Applet API that will prevent you from accessing low level I/O functions that operates on files.
Even though you might end up accessing individual files (if manipulate your apple security policy on the running machine), access to all open directory and files require higher privileges that you don't have in JVM.
精彩评论