DIAdem Help

Method: WriteLine for TextStream

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

Method: WriteLine for TextStream

Writes a text line into a TextStream file.

Object.WriteLine([Text])
ObjectTextStream
Object with this method
[Text]String
Specifies the text line. If you do not enter a text, DIAdem inserts a blank line.

The following example creates a text file, writes a text line 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.WriteLine(sText)
  Call oMyFile.Close
End Sub

Log in to get a better experience