Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ExitHandler
- {
- ExitHandler(PApplet thisProgram)
- {
- thisProgram.registerMethod("dispose", this);
- }
- public void dispose()
- {
- File randomFile = new File("randomFolder"); // When running the program in Processing, make this an absolute file path.
- randomFile.mkdir();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement