rb
1file=<<-EOS 2hoge 3 hgoe 4 hoge 5 6fuga 7 fuga 8 fuga 9 10foo 11 foo 12 foo 13 14EOS 15
上記file
のようなテキストを
hoge hgoe hoge
fuga fuga fuga
foo foo foo
に分割・わけたいのですが、うまくいきません。
splitやscanなどでうまくやる方法はないでしょうか?
回答2件
あなたの回答
tips
プレビュー
投稿2017/06/07 00:06
rb
1file=<<-EOS 2hoge 3 hgoe 4 hoge 5 6fuga 7 fuga 8 fuga 9 10foo 11 foo 12 foo 13 14EOS 15
上記file
のようなテキストを
hoge hgoe hoge
fuga fuga fuga
foo foo foo
に分割・わけたいのですが、うまくいきません。
splitやscanなどでうまくやる方法はないでしょうか?
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。