I can not see you code. I have no idea what it looks like. As such, I can not make suggestions on what to change.
I can take a guess if you like.
You currently have code like:
public void writeDaLetters( OutputStream s ) { .. }
Well, add a second method which takes a File. In this method open a FileOutputStream, and pass it to the writeDaLetters( OutputStream s ) method.