Write()

var textObj = OpenFile("c:\\myText.txt")
textObj.Write("Hello World")

Note:

Pathnames normally contain backslashes e.g. d:\welcome.txt, all single backslashes should be entered as double backslashes i.e. d:\\welcome.txt.

Close