question: public static OutputStream ostream ( File f ) { try { if ( ! f . isAbsolute ( ) ) f = new File ( getResourcesDir ( ) , f . getPath ( ) ) ; return new FileOutputStream ( f ) ; } catch ( FileNotFoundException e ) { throw new RuntimeException ( e ) ; } }
target:  the location (if relative) is realtive to the resources dir