solutions

First nth line from file

Write a function, that receives a path to a text file and a line number as parameter, and returns the N-th line of that file.

Example:

read_line_number('test-file.txt', 2)  # "this is the line number 2"

Test Cases

tests

[]