11-09-2013, 06:47 AM
Hi,
I cannot get this to work (will not append to file):
local file = io.open(GetDir() .. "\\plugins\\Drops.txt", "a");
file:write("TOI");
file:flush();
I know that one uses file;close() to close the file, but flush should save things to the file, but it does not.
I do use file:close() later in the same block.
I tried creating Drops.txt in path because am not sure if append function will create a file if it does not already exist.
I recently updated L2 retail to get the game patches and since then have seen issues with some NPC's not responding, etc.
I cannot get this to work (will not append to file):
local file = io.open(GetDir() .. "\\plugins\\Drops.txt", "a");
file:write("TOI");
file:flush();
I know that one uses file;close() to close the file, but flush should save things to the file, but it does not.
I do use file:close() later in the same block.
I tried creating Drops.txt in path because am not sure if append function will create a file if it does not already exist.
I recently updated L2 retail to get the game patches and since then have seen issues with some NPC's not responding, etc.