boilerSWuser
Mechanical
- Dec 2, 2008
- 5
I want to write different user inputs to a text file using a solidworks macro without writing over what is already there. Below is the code i have that writes over what is currently in the text file. Does anyone know how i can append the text without writing over it? I also want to record the "last saved by" infomation in the text file. How may i do that?
Dim fs, f
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("C:\Users\Rn\Documents\testfile.txt", True)
a.WriteLine ("This is a test.")
a.WriteLine (gUSOutsideDia & vbTab & gUSBaseCircle)
a.Close
I have searched through the API help but can't seem to find anything.
Any help would be great!
Dim fs, f
Set fs = CreateObject("Scripting.FileSystemObject")
Set a = fs.CreateTextFile("C:\Users\Rn\Documents\testfile.txt", True)
a.WriteLine ("This is a test.")
a.WriteLine (gUSOutsideDia & vbTab & gUSBaseCircle)
a.Close
I have searched through the API help but can't seem to find anything.
Any help would be great!