Hi, not exactly sure what's wrong. I have tested it and it works fine. Maybe I should have used only FileOutputStream instead of PrintStream (I found the other much easier). I closed all streams and yet I get errors: "Server security exception. You are performing a forbidden or potentially dangerous operation."