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

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

json - Gson().fromJson(jsonResult, Myobject.class) return values in 0's -