exec-notify/util.py
2020-12-06 13:18:32 +01:00

11 lines
202 B
Python

from pathlib import Path
def readFirstLine(file: Path) -> str:
"""
:param file: Path to file
:return: first line of file
"""
with open(file, "r") as f:
return f.readline()