ScriptingライブラリのFileSystemObject系の複数のオブジェクトに、戻り値がTextStreamオブジェクトであるメソッドがいくつか用意されています(FileSyestemObjectオブジェクトだけでなく、FolderオブジェクトやFileオブジェクトにも)。
これらを一覧にしておきます。
[スポンサードリンク]
TextStreamオブジェクトを返すメソッドの一覧
| クラス | メソッド | 引数 |
|---|---|---|
| FileSystem Object | CreateTextFile | FileName As String, [Overwrite As Boolean = True], [Unicode As Boolean = False] |
| FileSystem Object | GetStandardStream | StandardStreamType As StandardStreamTypes, [Unicode As Boolean = False] |
| FileSystem Object | OpenTextFile | FileName As String, [IOMode As IOMode = ForReading], [Create As Boolean = False], [Format As Tristate = TristateFalse] |
| Folder | CreateTextFile | FileName As String, [Overwrite As Boolean = True], [Unicode As Boolean = False] |
| File | OpenAsTextStream | [IOMode As IOMode = ForReading], [Format As Tristate = TristateFalse] |
[スポンサードリンク]
- Newer:NumPyのclipを使って配列のマイナス値をゼロに
- Older:NumPyで配列のマイナス値をゼロに
Home » FSO・FileSystemObjectの使い方 » TextStreamを返すメソッド一覧
『インストラクターのネタ帳』では、2003年10月からMicrosoft Officeの使い方などを紹介し続けています。










