View Single Post
Old 03-17-2012, 06:31 PM   #3
hjalfi began at the beginning.
Posts: 15
Karma: 10
Join Date: Apr 2011
Device: Kindle 3g
That's because the ghastly old dialect of Java that the Kindle supports does support creating PrintStreams directly from Files. You have to create a FileOutputStream first. Try this:

var home = kjs.getHomeDirectory();
var f = new, "test.txt");
var fos = new;
var ps = new;

The Kindle only supports PBP 1.1, which is now pathetically old; see the documentation here for the API list:
hjalfi is offline   Reply With Quote