DIAdem Help

Method: Write for TextStream

  • Updated2024-09-12
  • 1 minute(s) read

Method: Write for TextStream

Writes a text into a TextStream file.

Object.Write(Text)
ObjectTextStream
Object with this method
TextString
Specifies the text.

The following example creates a text file, writes a text into this file, and then closes the file:

Sub CreateTxtFile(sFile,sText)
  Dim fso, oMyFile
  Set fso = CreateObject("Scripting.FileSystemObject")
  Set oMyFile = fso.CreateTextFile(sFile, True)
  Call oMyFile.Write(sText)
  Call oMyFile.Close
End Sub

Log in to get a better experience