Hello,
first sorry my english (i'm portuguese)
I have this code:
code:
function AddLineToFile(file, line)
{
if (!fsObj.FileExists(MsgPlus.ScriptFilesPath + '\\' + file))
var fileObj = fsObj.OpenTextFile(MsgPlus.ScriptFilesPath + '\\' + file, 2, 1);
else
var fileObj = fsObj.OpenTextFile(MsgPlus.ScriptFilesPath + '\\' + file, 8, 0);
fileObj.WriteLine(line);
fileObj.Close();
}
that i took from
here
and in the debug it say's that fsObj doesn't exist
what am i doing wrong?