Hi NightHawk,
I have extracted the
String commands (as well as the
io and
table ones) from the Lua Manual, and will send you an e-mail with the document.
I have only tested the following, but they all work OK, so the others should as well
- Code: Select all
string.find
string.sub
string.len
io.close
io.open
file:read
table.insert
table.getn (deprecated in 5.1)
I'll see if I can test a few more and check they're OK.
Regards
Shando
EDIT: Just be aware that:
- Code: Select all
table.getn
has been replaced by the new (in 5.1) length operator:
- Code: Select all
#
so when I used:
- Code: Select all
for aa = 1, table.getn ( tTemp ) do
table.insert ( tCSV, tTemp[aa] )
end
in my readCSV function, I should have used:
- Code: Select all
for aa = 1, # ( tTemp ) do
table.insert ( tCSV, tTemp[aa] )
end