Method: ReadAll for TextStream
- Updated2024-09-12
- 1 minute(s) read
FileSystemObject and Dictionary > Methods > Method: ReadAll for TextStream
Method: ReadAll for TextStream
Reads in all of the TextStream file.
sReadAll = Object.ReadAll
| Object | TextStream Object with this method |
| sReadAll | String 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
See Also
Related Topics
Command: ExecuteExclusiveBegin | Command: ExecuteExclusiveEnd | Command: ExecuteExclusiveEndAll