Created
June 22, 2022 03:50
-
-
Save rahulbanerjee26/38225b79df1eff662b5185189f103361 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function writeToFile(path, data){ | |
var writeSystemObject = new ActiveXObject("Scripting.FileSystemObject"); | |
var writeStream = writeSystemObject.CreateTextFile(path,true); | |
writeStream.Write(data); | |
writeStream.close(); | |
} | |
writeToFile("C:\\theFile.txt", "This text was written using a TextStream"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment