always write output with lf line endings
steve donovan
7 years ago
241 | 241 | end |
242 | 242 | |
243 | 243 | function M.writefile(name,text) |
244 | local ok,err = utils.writefile(name,text) | |
244 | local f,err = io.open(name,"wb") | |
245 | --~ local ok,err = utils.writefile(name,text) | |
245 | 246 | if err then quit(err) end |
247 | f:write(text) | |
248 | f:close() | |
246 | 249 | end |
247 | 250 | |
248 | 251 | function M.name_of (lpath) |