I'm trying to save a txt file using the function app.WriteFile() and its method "Append".
If I use the special keyword /Storage/, the append method works as expected.
Instead if I use the keyword /Internal/, the append method doesn't work.
The following is the code I use for looping all the strings I nedd to append:
for(let i=0;i<txtToExport.length;i++)
{
app.WriteFile( myFullPath, "title: "+txtToExport[i].title+"\n", "Append")
app.WriteFile( myFullPath, "user: "+txtToExport[i].body_user+"\n", "Append")
app.WriteFile( myFullPath, "password: "+txtToExport[i].body_pwd+"\n", "Append")
app.WriteFile( myFullPath, "website: "+txtToExport[i].body_web+"\n", "Append")
app.WriteFile( myFullPath, "\n", "Append")
}
In the case of /Internal/ keyword the file contains only the last string of the loop.