| Availability: |
| |||
| JavaScript syntax: | IE | myTextStream = myFile.OpenAsTextStream() | ||
| IE | myTextStream = myFileSystem.OpenTextFile(aName, aMode, aFlag, aFormat) | |||
| Argument list: | aName | The name of the file to be created | ||
| aFlag | A flag indicating whether the file can be created if necessary | |||
| aMode | An access mode for the file | |||
| aFormat | A format control for the file | |||
| Object properties: | AtEndOfLine, AtEndOfStream, Column, Line | |||
| Object methods: | Close(), Read(), ReadAll(), ReadLine(), Skip(), SkipLine(), Write(), WriteBlankLines(), WriteLine() | |||
This object is a wrapper for a file when opened for I/O. With this object you can read and write to the file.
Files can be opened via methods belonging to the File object or by requesting that the FileSystem object open a named file. Both techniques yield the same kind of TextStream object.
| Property | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
|---|---|---|---|---|---|---|---|---|---|---|---|
| AtEndOfLine | ![]() | 2.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| AtEndOfStream | ![]() | 2.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| Column | ![]() | 2.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| Line | ![]() | 2.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| Method | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Close() | ![]() | 2.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| Read() | ![]() | 2.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| ReadAll() | ![]() | 2.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| ReadLine() | ![]() | 2.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| Skip() | ![]() | 2.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| SkipLine() | ![]() | 2.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| Write() | ![]() | 2.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| WriteBlankLines() | ![]() | 2.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| WriteLine() | ![]() | 2.0 ![]() | ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| Prev | Home | Next |
| textRectangle.top | Up | TextStream.AtEndOfLine |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. | ||