// Open a log file and a summary file var myLog = new File("/data/logs/today.log"); var mySummary = new File("/data/logs/summary.log"); // Open the log file for reading and the summary file for // appending. myLog.open("r"); mySummary.open("a"); // Append the contents of the log file to the summary file while (!myLog.eof()){ myBytes = File.byteToString(myLog.readByte()); mySummary.write(myBytes); } // Close the files myLog.close(); mySummary.close();