file - Using Lua How to read or write in different directory? -
i able create write read , append in same directory using lua. want write sub directory. can please show? thx. i.e. existing current dir: c:\main existing subdirectory: c:\main\sub new file: c:\main\sub\newfile.txt
writing sub-directory no different writing file in same directory. issue may run escaping windows path separators, instead of "c:\main", use [[c:\main]] or "c:\\main".
if folder needs created, you'll need use shell commands or lfs library default lua interpreter doesn't provide api create folders.
Comments
Post a Comment