Can't write to files in Programming Posted May 3, 2015 When i try to save files with the Filesystem and the Filestream from Filesystem.open i get following error: /lib/filesystem.lua:467: attempt to index local 'self' (a nil value) stack traceback: kernel:730: in function '__index' /lib/filesystem.lua:467: in function 'close' stdin:1: in main chunk [C]: in function 'xpcall' kernel: 725: in function 'xpcall' /bin/lua.lua:62: in main chunk (...tail calls...) I typed this in lua console: fs = filesystem.open("/mnt/da0/adsfk","w") --da0 is HDD fs.write("something") fs.close() --here it happens Any help is appreciated!
Can't write to files
in Programming
Posted
When i try to save files with the Filesystem and the Filestream from Filesystem.open i get following error:
/lib/filesystem.lua:467: attempt to index local 'self' (a nil value)
stack traceback:
kernel:730: in function '__index'
/lib/filesystem.lua:467: in function 'close'
stdin:1: in main chunk
[C]: in function 'xpcall'
kernel: 725: in function 'xpcall'
/bin/lua.lua:62: in main chunk
(...tail calls...)
I typed this in lua console:
fs = filesystem.open("/mnt/da0/adsfk","w") --da0 is HDD
fs.write("something")
fs.close() --here it happens
Any help is appreciated!