'file name
output_file = "output.txt"
'create File System object
set Fso = CreateObject("Scripting.FileSystemObject")
const ForReading = 1, ForWriting = 2, ForAppending = 8
'open the output file for writing
set oOutFile = fso.OpenTextFile(output_file, ForWriting, True)
out_line = "Hello"
'write to the output file
outFile.WriteLine(out_line)
'close the output file
outFile.close