I'd use a context manager here, and split the file afterwards.

```python
with open(spec_file_path, "r") as spec_file:
    full_file_text = spec_file.read()
file_split = full_file_text.splitlines()
```