local data = file.readAll()which gives me a 'nil' error. It should be this:
local data = file.read()At least, as far as I know.
Posted 10 April 2014 - 01:44 AM
local data = file.readAll()which gives me a 'nil' error. It should be this:
local data = file.read()At least, as far as I know.
Posted 10 April 2014 - 02:08 AM
Posted 11 April 2014 - 08:21 PM
local file = fs.open("data", "r")
local file = file.readAll()
Will error saying attempt to index global and moan at you!file = fs.open("data", "r")
file = file.readAll()
Posted 11 April 2014 - 08:33 PM
DannySMc, on 11 April 2014 - 08:21 PM, said:
local file = fs.open("data", "r")
local file = file.readAll()
Will error saying attempt to index global and moan at you!file = fs.open("data", "r")
file = file.readAll()
Posted 12 April 2014 - 01:00 AM
DannySMc, on 11 April 2014 - 08:21 PM, said:
local file = fs.open("data", "r")
local file = file.readAll()
Will error saying attempt to index global and moan at you!file = fs.open("data", "r")
file = file.readAll()
local file = fs.open("data", 'r')
file = file.readAll() --# its still local here, 'cause you defined it local above
Posted 12 April 2014 - 03:30 PM
theoriginalbit, on 12 April 2014 - 01:00 AM, said:
DannySMc, on 11 April 2014 - 08:21 PM, said:
local file = fs.open("data", "r")
local file = file.readAll()
Will error saying attempt to index global and moan at you!file = fs.open("data", "r")
file = file.readAll()
local file = fs.open("data", 'r')
file = file.readAll() --# its still local here, 'cause you defined it local above
0 members, 1 guests, 0 anonymous users