I want to use VB script to write to a text file and have tried using:
My.Computer.FileSystem.WriteAllText("C:\Users\Internet\test1.txt","This is new text to be added",True)
I get error -
"Cannot use parenthesis when calling a sub".
If I remove the parenthesis, I get error -
Object required: 'My'
Have searched the help forums without luck. I'm using windows vista. could I be missing some libraries or such ?
Any help much appreciated.