Saving Files in a specific Path

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hey guys,

 

my .tcl-script creates different filetypes and saves all of them into the document folder. In order to not create a mess of files, I want them to be saved in a specific folder.

I copied the path of my folder and read it by opening a script, which saves the path into a variable.

 

At the moment, I'm using the following command to create a new file:

set f [open path.txt w]

How can I save the file into a specific path?

 

Kind regards,

Simon

Answers