I looked through the Lua and LuaFileSystem documents and have not yet found a way to create a new file, I also searched here, but at the same end.
As a side note, the solution I'm looking for should be neutral for portability, but I'm glad to get different answers for different systems.
source
share