I am getting
open failed: EACCES (Permission denied)
EACCES (Permission denied)
on the line OutputStream myOutput = new FileOutputStream
OutputStream myOutput = new FileOutputStream
after adding permission solved my problem