The `File` class has various class methods that will open a file, perform some operation, and then close the file again. Since you only do one thing with the open file, I'd suggest using the class method `File.readlines` here instead of the instance method `File#readlines`.