Code: Select all
function readConfigFile()
local config = love.filesystem.read("config.txt")
return config
end
Also, here's the code that accesses config.txt's data:
Code: Select all
print(tostring(readConfigFile()), 0, 0)
Edit: Nevermind, I forgot to actually put something in the .txt file. The reason I'm not deleting this is so another person who has my issue might be helped by this post