HF RL Explorer

Task: Reading the First Line of a File in Ruby

Task: Reading the First Line of a File in Ruby: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Ruby script that reads only the first line of a file in the fastest, simplest, and most idiomatic way possible.

The task

You need to write a Ruby script that reads **only** the first line of a file in the fastest, simplest, and most idiomatic way possible.

Part of PrimeIntellect/Terminal-Lego-15k.