1 importPackage(java.io);
3 function writeFile( file, stream ) {
4 var buffer = new PrintWriter( new FileWriter( file ) );
5 buffer.print( stream );
9 function read( file ) {
10 var jq = new File(file);
11 var reader = new BufferedReader(new FileReader(jq));
13 var buffer = new java.lang.StringBuffer(jq.length());
14 while( (line = reader.readLine()) != null) {
18 return buffer.toString();