from typing import List


def read_lines(path: str) -> List[str]:
    """
    Given a file-like object (`String`, `File`) as a parameter, this will read each
    line as a string and return an `Array[String]` representation of the lines in
    the file.

    WDL syntax: Array[String] read_lines(String|File)
    """
    # file should already be imported locally via `process_and_read_file`
    with open(path, "r") as f:
        return f.read().rstrip('\n').split('\n')