Use File.open with a block, instead of each_line for loaded string