Thanks for the quick answer but the problem seems to be somewhere else. I switched system.ResourcesDirectory to system.CachesDirectory and added a tostring() to the print but it still prints
The variable myFile is not printable. It’s an internal data structure that references the open file. Put something like this after your http.request {} call
[lua]
local contents = “”
local file = io.open( path, “r” )
if file then
– read all contents of file into a string
local contents = file:read( “*a” )
io.close( file )
print(contents)
Thanks for the quick answer but the problem seems to be somewhere else. I switched system.ResourcesDirectory to system.CachesDirectory and added a tostring() to the print but it still prints
The variable myFile is not printable. It’s an internal data structure that references the open file. Put something like this after your http.request {} call
[lua]
local contents = “”
local file = io.open( path, “r” )
if file then
– read all contents of file into a string
local contents = file:read( “*a” )
io.close( file )
print(contents)