DIAdem Help

Method: ReadAll for TextStream

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

Method: ReadAll for TextStream

Reads in all of the TextStream file.

sReadAll = Object.ReadAll
ObjectTextStream
Object with this method
sReadAllString
Receives the read text.

The following example reads in a file:

Function ReadFile(sFile)
  Const ForReading = 1
  Dim fso, oMyFile
  Set fso = CreateObject("Scripting.FileSystemObject")
  Set oMyFile = fso.OpenTextFile(sFile, ForReading, False)
  ReadFile = oMyFile.ReadAll
  oMyFile.Close
End Function

Log in to get a better experience