def read_to_string(pattern="\n")
      opened do
        streaming_substring_search(pattern)
      end
    end