ASP TextStream Object
The TextStream object is utilized to get to the substance of a content file.
The TextStream Object
The TextStream object is utilized to get to the substance of content files.
The following code makes a content record (c:\test.txt) and after that thinks of some content to the document (the variable f is an occasion of the TextStream object):
To make an occurrence of the TextStream object you can utilize the CreateTextFile or OpenTextFile techniques for the FileSystemObject object, or on the other hand you can utilize the OpenAsTextStream technique for the File object.
The TextStream item's properties and strategies are depicted below:
|AtEndOfLine||Returns genuine if the document pointer is situated right away before the finish of-line marker in a TextStream document, and false if not|
|AtEndOfStream||Returns genuine if the document pointer is toward the finish of a TextStream document, and false if not|
|Column||Returns the section number of the present character position in an information stream|
|Line||Returns the present line number in a TextStream file|
|Close||Closes an open TextStream file|
|Read||Reads a predefined number of characters from a TextStream document and returns the result|
|ReadAll||Reads a whole TextStream record and returns the result|
|ReadLine||Reads one line from a TextStream record and returns the result|
|Skip||Skips a predetermined number of characters when perusing a TextStream file|
|SkipLine||Skips the following line when perusing a TextStream file|
|Write||Writes a predetermined content to a TextStream file|
|WriteLine||Writes a predetermined content and another line character to a TextStream file|
|WriteBlankLines||Writes a predefined number of new-line character to a TextStream file|