Creating a .txt file and writing a string in it
Posted: Sat Apr 26, 2014 11:56 pm
Code: Select all
a = "testy test"
f = love.filesystem.newFile("Test.txt")
f:open("w")
f:write(a)
f:close()
Code: Select all
a = "testy test"
f = love.filesystem.newFile("Test.txt")
f:open("w")
f:write(a)
f:close()
Code: Select all
a = "testy test"
love.filesystem.write("Test.txt", a)