I'm very new to Mathematica and I'm trying to write into a file. I want to have a function in my file path. For Example:
s = OpenWrite["/Users/Home/Desktop/file[i].doc"]
Obviously in this format it will read it as it exactly appears above. How can I get it to open the file with the result for file[i]
?
i.e. If file[i] = 1
then the program will compute:
s = OpenWrite["/Users/Home/Desktop/1.doc"]