Method: WriteLine for TextStream
- Updated2024-09-12
- 1 minute(s) read
FileSystemObject and Dictionary > Methods > Method: WriteLine for TextStream
Method: WriteLine for TextStream
Writes a text line into a TextStream file.
Object.WriteLine([Text])
| Object | TextStream 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
See Also
Related Topics
Command: ExecuteExclusiveBegin | Command: ExecuteExclusiveEnd | Command: ExecuteExclusiveEndAll