LoginSignup
1
1

More than 5 years have passed since last update.

【質問】二次配列を用いてのCSV化::NoMethodError: undefined method `map' for #<String:0x000001011faca0>

Posted at

エラー内容を検索しても、海外の文献しか引っかからず理解に苦しんでおり質問させていただきます。
どのように対処すれば宜しいでしょうか???

require 'csv'
f = open("test.txt").to_a
CSV.open("test.csv","wb") do |csv|
f.each do |bo|
csv << bo
end
end
f.close

Error:NoMethodError: undefined method `map' for #String:0x000001011faca0

すいません、ご教授下さいませ。

1
1
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1