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