Files
playbook/skills/tsl-api-reference/references/codegen/builtin/object/tfilestream.md
T
csh 9010829c6d feat(tsl-api-reference): expand and reorganize api catalog
Flatten builtin pages, add third-party and platform scopes, and import financial and data warehouse references.

Keep the existing generated index without rebuilding after signature normalization.
2026-08-10 18:26:24 +08:00

768 B

Object - TFileStream 文件流

TFileStream

声明:class

TFileStream 内置对象

父类:TStream

create(alias, file_name, file_mode)

声明:function

创建 TFileStream 实例

可见性:public

参数 类型 说明
alias string 字符串类型,目录别名
file_name string 字符串类型,文件名
file_mode integer 整数类型。为打开模式和共享模式的组合值(相加)

file_mode 打开模式取值

  • 65535 — 创建
  • 0 — 只读
  • 1 — 只写
  • 2 — 读写

file_mode 共享模式取值

  • 0 — FCBs打开模式共享
  • 16 — 禁止共享打开
  • 32 — 禁止写共享
  • 48 — 禁止读共享
  • 64 — 允许读写共享