Property: Column for TextStream
- Updated2024-09-12
- 1 minute(s) read
FileSystemObject and Dictionary > Properties > Property: Column for TextStream
Property: Column for TextStream
Specifies the current column number of the file pointer in a text stream file. After the file is open, the property has the value 1.
Object.Column
| Object | TextStream Object with this property |
| Object.Column | LongInteger with read access |
The following example specifies the length of the first line of a file:
Function GetFileColumn(sFile) Const ForReading = 1 Dim fso, oMyFile, sOutput Set fso = CreateObject("Scripting.FileSystemObject") Set oMyFile = fso.OpenTextFile(sFile, ForReading, False) Do While oMyFile.AtEndOfLine <> True sOutput = oMyFile.Read(1) Loop GetFileColumn = oMyFile.Column oMyFile.Close End Function