Trying to create a text file
Posted: Sat Aug 28, 2010 9:28 pm
Hi Everyone,
I'm trying to learn how to create a file from within RunRev and store it to a location selected by the user. This is the code I've written so far.
It compiles without any errors, and it seems to run. The issue is that no file is actually created in the folder I've selected on my desktop.
I'm hoping that you can suggest what I might be missing. Thanks! -Matt
I'm trying to learn how to create a file from within RunRev and store it to a location selected by the user. This is the code I've written so far.
Code: Select all
on mouseUp
answer folder "What is the folder name?" titled "Folder Name"
put it into tFolder
ask "Enter a file name" titled "File name"
put it into tFileName
put "/" before tFileName
put tFolder&&tFileName into tOpenThis
open file tOpenThis for write
write "Testing, testing" to file tOpenFile
close file tOpenFile
end mouseUp
I'm hoping that you can suggest what I might be missing. Thanks! -Matt