' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("test.txt",1)
alllines = f.ReadAll
f.Close
Set f = fso.OpenTextFile("test.txt",2)
f.Write Replace(alllines,"4", "4" + vbcrlf + "4A")
f.close
Set f = Nothing
Set fso = Nothing
