InternetUnicodeHTMLCSSScalable Vector Graphics (SVG)Extensible Markup Language (xml)ASP.NetDocument Object Model (DOM)JavaScript FileSystemObject ComponentFileSystemObject ObjectDrive ObjectFolder ObjectFile Object TextStream ObjectClose / Read / ReadAll / ReadLine / Skip / SkipLineWrite / WriteBlankLines / WriteLine Draft for Information Only
Content
TextStream Object
TextStream ObjectOne key function of FileSystemObject Component is the manipulation of text file of the file system. TextStream Object facilitates sequential access to text file. TextStream.AtEndOfLineTextStream.AtEndOfLine property is a read only property to check whether the file pointer is positioned immediately before the end-of-line marker in the specified TextStream object instance or not. Syntax:TextStreamName.AtEndOfLine Or in VBScript. Imply textatlineendflag =TextStreamName.AtEndOfLine Or in JScript. Imply textatlineendflag =TextStreamName.AtEndOfLine Parameters:textatlineendflag The parameter "textatlineendflag" is the name assigned to the boolean value returned by the AtEndOfLine property referred to the specified TextStreamName object. TextStreamName The parameter "TextStreamName" is used to specify the name of the instance of the TextStream Object related to. Returns:Boolean value The return value of the AtEndOfLine property is true if the file pointer is positioned immediately before the end-of-line marker in the TextStream file. The return value of the AtEndOfLine property is false if the file pointer is not positioned immediately before the end-of-line marker in the TextStream file. Remarks:TextStreamName refers to a TextStream Object. Before using the AtEndOfLine property of a TextStream Object, the specified TextStream Object must be created using the CreateTextFile method or OpenTextFile method of a FileSystemObject object or the OpenAsTextStream method of a File object. The AtEndOfLine property applies to TextStream files opened for reading only, an error occurs if the TextStream file is not opend for reading. Examples:
TextStream.AtEndOfStreamTextStream.AtEndOfStream property is a read only property to check whether the file pointer is positioned at the end of the text stream in the specified TextStream object instance or not. Syntax:TextStreamName.AtEndOfStream Or in VBScript. Imply textatstreamendflag =TextStreamName.AtEndOfStream Or in JScript. Imply textatstreamendflag =TextStreamName.AtEndOfStream Parameters:textatstreamendflag The parameter "textatstreamendflag" is the name assigned to the boolean value returned by the AtEndOfStream property referred to the specified TextStreamName object. TextStreamName The parameter "TextStreamName" is used to specify the name of the instance of the TextStream Object related to. Returns:Boolean value The return value of the AtEndOfStream property is true if the file pointer is positioned immediately at the end of the text stream in the TextStream file. The return value of the AtEndOfStream property is false if the file pointer is not positioned immediately before the end of the text stream in the TextStream file. Remarks:TextStreamName refers to a TextStream Object. Before using the AtEndOfStream property of a TextStream Object, the specified TextStream Object must be created using the CreateTextFile method or OpenTextFile method of a FileSystemObject object or the OpenAsTextStream method of a File object. The AtEndOfStream property applies to TextStream files opened for reading only, an error occurs if the TextStream file is not opend for reading. Examples:
TextStream.ColumnTextStream.Column property is a read only property to get the column number of the current file pointer position in a line of the text stream of the specified file object instance. Syntax:TextStreamName.Column Or in VBScript. Imply textcolumn =TextStreamName.Column Or in JScript. Imply textcolumn =TextStreamName.Column Parameters:textcolumn The parameter "textcolumn" is the name assigned to the value returned by the Column property referred to the specified TextStreamName object. TextStreamName The parameter "TextStreamName" is used to specify the name of the instance of the TextStream Object related to. Returns:numerical value The return value of the Column property is the number of the vertical position of the file pointer in a text line of the text stream file. Remarks:TextStreamName refers to a TextStream Object. Before using the Column property of a TextStream Object, the specified TextStream Object must be created using the CreateTextFile method or OpenTextFile method of a FileSystemObject object or the OpenAsTextStream method of a File object. The Column property returns 1, after a newline character has been written, but before any other character is written. Examples:
TextStream.LineTextStream.Line property is a read only property to get the line number of the current file pointer position in the text stream of the specified file object instance. Syntax:TextStreamName.Line Or in VBScript. Imply textrow =TextStreamName.Line Or in JScript. Imply textrow =TextStreamName.Line Parameters:textrow The parameter "textrow" is the name assigned to the value returned by the Line property referred to the specified TextStreamName object. TextStreamName The parameter "TextStreamName" is used to specify the name of the instance of the TextStream Object related to. Returns:numerical value The return value of the Line property is the number of the horizontal position of the file pointer of the corresponding text line in the text stream file. Remarks:TextStreamName refers to a TextStream Object. Before using the Line property of a TextStream Object, the specified TextStream Object must be created using the CreateTextFile method or OpenTextFile method of a FileSystemObject object or the OpenAsTextStream method of a File object. The Line property returns 1, after a file is initally opened and before any other character is read. Examples:
©sideway ID: 130300033 Last Updated: 3/27/2013 Revision: 0 Ref: References
Latest Updated Links
|
Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Reference 79 Computer Hardware 249 Software Application 213 Digitization 32 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 429 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019