// Initialize a file var myLog = new File("/data/logs/today.log"); // Open the file in read mode myLog.open("r"); // Close the file myLog.close();