readAFile.py 204 B

1234567891011
  1. #! /usr/bin/env python
  2. """
  3. Simple tests of arrays in python
  4. """
  5. import sys
  6. with open("foo.txt") as fileHandle:
  7. for line in fileHandle:
  8. line = line.strip()
  9. print(f"line is /{line}/")