vbscript - VB script + change word in VB script on text file -


How to change the word in a text file by VB script (such as sed in Unix)

< P>

You can use the FileSystemObject object. Some Notes: Set = fs = CreateObject ("Scripting.FileSystemObject") sf = "C: \ DOCKS \ INSTEST" set f = fs.OpenTextFile (sf, 1) '1' = To read S = change f.ReadAll s = (S, "Bird", "Cat") F. Off set F = fs.OpenTextFile (SF, 2) '' 2 = ForWriting f.Write f.Close


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -