My small utility application asks the user for an output directory via a GUI file selector. Then it creates a lot of files in this output directory after some processing.
you can use FilePermission to get the details . I find one way where you need to implement SecurityManager the code is here and here