// Open a log file var myLog = new File("/data/logs/today.log"); // Open the log file for reading myLog.open("r"); // Close the file myLog.close();