erictleung, Really cool to see this concise way to read text from a file in Python using the built-in pathlib module.
from pathlib import Path
line_lst = Path("to/the/file.txt").read_text().splitlines()
erictleung, Really cool to see this concise way to read text from a file in Python using the built-in pathlib module.
from pathlib import Path
line_lst = Path("to/the/file.txt").read_text().splitlines()
Add comment