J
Jesse Crockett
In irb, the method "one\ntwo\nthree".split worked fine
but in a file..
-------------------------------
@text = "
line one
line two
line three
"
@lines = @text.split(/\n/)
-------------------------------
.. it fails: "private method `split' called for nil:NilClass
(NoMethodError)"
After getting the array of lines, again I need to call split() on each
line, then joing them with ", "
(basically I need a CSV file for 14,000 lines verb annotation from
WordNet)
It's late, so I probably could not figure this out myself tonight. Any
help is welcome. Thank you.
but in a file..
-------------------------------
@text = "
line one
line two
line three
"
@lines = @text.split(/\n/)
-------------------------------
.. it fails: "private method `split' called for nil:NilClass
(NoMethodError)"
After getting the array of lines, again I need to call split() on each
line, then joing them with ", "
(basically I need a CSV file for 14,000 lines verb annotation from
WordNet)
It's late, so I probably could not figure this out myself tonight. Any
help is welcome. Thank you.