Title / Description
Code array = [] File.open(file.txt) do |f| f.lines.each do |line| array << line.split.map(&:to_s) end end puts purgeObject @test = { "strings" => array }.to_json puts @test
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code