how to use “ io.open”

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
banzezhishu2022
Posts: 3
Joined: Sun Mar 13, 2022 2:21 am

how to use “ io.open”

Post by banzezhishu2022 »

hi, i want to input data,like this:
local file=io.open("C:\\data.csv","r+")

but lua console show:
ERROR: [string "Console"]:2: attempt to index a nil value (global 'io')

why? and any assistance would be welcome!
User avatar
michaelm75au
Posts: 12463
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

Re: how to use “ io.open”

Post by michaelm75au »

The methods under 'io' are disabled in the Public release of Command.
Michael
Post Reply

Return to “Lua Legion”