Can Xojo save a textfile to disk without "save as" dialogue window?

Can someone tell me how to code to save a textfile to disk without showing/popping up a “save as” dialogue window? (using windows)

Look at the first example code at this page :

To specify a path, use GetFolderItem :

Thank you for your reply.

I already tried the examples, but

f = GetSaveFolderItem("", “CreateExample.txt”)

does open a “save as” window and I want to directly write to a file on disk without opening the “save as” or any other window

Any ideas?

Read Michel’s reply closely. He is recommending GetFolderItem, not GetSaveFolderItem


You are right, I should have read Michael his comment closer.

Thanks both, it works for me.