// Open the files var myLog = new File("/data/logs/today.log"); var mySummary = new File("/data/logs/summary.log"); myLog.open("r"); mySummary.open("w"); // Write the contents of the log file to the page for(var i = 0; i <= myLog.getLength(); i++){ myBytes = File.byteToString(myLog.readByte()); mySummary.write(myBytes); } mySummary.flush(); // Close the files myLog.close(); mySummary.close();