sergiodorazio Posted December 9, 2021 Share Posted December 9, 2021 Hi, if I want save some data with script, I use these instructions: var f = File("data.txt"); f.write("data to save: " + d1); the file data.txt is save in the waveform installation folder. I need to set this folder, I need that this folder is the folder where I save ".dwf3work" files. How can I do this ? By Sergio. Link to comment Share on other sites More sharing options...
0 JColvin Posted December 15, 2021 Share Posted December 15, 2021 Hello, I have moved your question to a more appropriate section of the forum. Thanks, JColvin Link to comment Share on other sites More sharing options...
0 attila Posted December 16, 2021 Share Posted December 16, 2021 Hi @sergiodorazio By default the file should be created in current user's documents folder. Use absolute path or "~" for user path. File("file") : [user]/Documents/file File("~/file") : [user]/file File("C:/file") : C:/file Link to comment Share on other sites More sharing options...
Question
sergiodorazio
Hi,
if I want save some data with script, I use these instructions:
var f = File("data.txt");
f.write("data to save: " + d1);
the file data.txt is save in the waveform installation folder.
I need to set this folder, I need that this folder is the folder where I save ".dwf3work" files. How can I do this ?
By Sergio.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now