Truncation

This commit is contained in:
Empathic Qubit 2021-04-28 23:29:43 -04:00
parent 36e7e75213
commit d88af17c09

View file

@ -144,8 +144,14 @@ local function waitLoop()
})
)
-- Truncate the input file to reduce the amount of time
-- wasted if we reopen it too early
local inputFile = io.open(inputFilePath, "w")
inputFile:close()
waiter = util.waitForChange(inputFilePath)
-- Write the result
local outFile = io.open(outputFilePath, "w")
outFile:write(table.concat(outContents, "\n"))
outFile:close()