Displaying 1 result from an estimated 1 matches for "task_templates".
Did you mean:
tag_templates
2006 Feb 13
2
Help reading csv data in a dynamic arrays w/ loops... =)
...";)
Now, here is the code im kinda on my way to using with ruby on rails. It
returns an error "index 10 out of array" so the loop''s probably going on
longer than it should, i just dont get how rails handles this (no
''var++'' incrementing...?)
- - - - -
task_templates = IO.readlines("somefile.csv")
tcount = 0
while tcount <= task_templates.length
task_templates.fetch(tcount).split('','')
tcount = tcount.succ
end
- - - - -
Thanks again, hope someone can help me.
--
Posted via http://www.ruby-forum.com/.