This may be a very trivial question, but I cannot seem to find the answer on Google.
Is there a way to write an entire array of strings to a file without having to loop through the array in VBScript?
Option Explicit
Dim aData
aData = Array( "a", "b", "c", "d" )
With WScript.CreateObject("Scripting.FileSystemObject").CreateTextFile("file.txt", True)
.Write Join(aData, vbCrLf)
.Close
End With
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With