Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
12
Task/Write-entire-file/VBScript/write-entire-file.vbs
Normal file
12
Task/Write-entire-file/VBScript/write-entire-file.vbs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Set objFSO = CreateObject("Scripting.FileSystemObject")
|
||||
|
||||
SourceFile = objFSO.GetParentFolderName(WScript.ScriptFullName) & "\out.txt"
|
||||
Content = "(Over)write a file so that it contains a string." & vbCrLf &_
|
||||
"The reverse of Read entire file—for when you want to update or create a file which you would read in its entirety all at once."
|
||||
|
||||
With objFSO.OpenTextFile(SourceFile,2,True,0)
|
||||
.Write Content
|
||||
.Close
|
||||
End With
|
||||
|
||||
Set objFSO = Nothing
|
||||
Loading…
Add table
Add a link
Reference in a new issue