// Open the file in text reading mode int fileID = open("world.txt", "r"); // Determine the number of lines in the file int n = countln(fileID); for (int i = 0; i < n; i++) { // Read one line from the file string line = readln(fileID); // Display the read content println("LINE_" + i + ": " + line); } // Close the file close(fileID);