l content at once.</li>
        <li><strong><code>readline()</code></strong>: Reads one line at a time.</li>
        <li><strong><code>readlines()</code></strong>: Reads all lines and returns them as a list.</li>
      </ul>
      <h3>Example: Read File Line by Line</h3>
      <div class="code-block">
        <pre>
# Read a file line by line
file = open("example.txt", "r")
for line in file:  # Loop through each line
    print(line.strip())  # Print each line without extra spaces
file.close()
    </pre>
    