solutions

First line from file

Write a function, that receives a path to a text file as parameter, and returns the first line of that file.

Example:

  read_first_line('test-file.txt')  # "this is the first line"

Test Cases

tests

[]