hiho,
l know how to read in a txt or write something into it,
but l dunno how l can read in .ods data sets(tables made with openoffice).
each row should be converted in an array so l could work with it.
the problem is it looks weird and messy when l print it.
my code
http://img197.imageshack.us/i/messmof.jpg/
l know how to read in a txt or write something into it,
but l dunno how l can read in .ods data sets(tables made with openoffice).
each row should be converted in an array so l could work with it.
the problem is it looks weird and messy when l print it.
my code
Code:
monstats = Array.new
File.open("Data/monstats.ods", "r+") do |save|
monstats = save.readlines
end
p monstats