diff --git a/luascripts/util/files.lua b/luascripts/util/files.lua index df40405..c6948f7 100644 --- a/luascripts/util/files.lua +++ b/luascripts/util/files.lua @@ -71,7 +71,10 @@ end function files.loadCFG(fileName, idExpr, fileCreate) local functionStart = et.trap_Milliseconds() - local fileString = files.open(fileName, et.FS_READ, fileCreate) + local fileString = files.open(fileName, et.FS_READ, fileCreate).."\n\n" + + et.trap_FS_FCloseFile(fileDescriptor) + local arrayCount = 0 local array = {}