Solved
Forum Discussion
function Get_Translate_Mgs_Dinamic_File() // Get dinamic file
{
if (Const_lib.Language == "it")
return "c:\\DL Console\\it.json"
else if (Const_lib.Language== "en-US")
return "c:\\DL Console\\en-US.json"
}
Could be that I have to put the absolute path?
hmmm
If You want to work with Project Script files You need to use an absolute path.
You can get path to You to project with this method: aqFileSystem.GetCurrentFolder();
let pathToFile = aqFileSystem.GetCurrentFolder(); let writeToFile = aqFile.WriteToTextFile( pathToFile + "\\script\\" + fileName + ".js", str, aqFile.ctUTF8, true );