Skip to content

Filesystem

Include: Use System\FileSystem.pkg

The Filesystem reference covers sequential file input/output, file and directory management, path resolution, and advanced channel control.

Use Seq_New_Channel when opening files in application code; see Sequential Channels.

Opening and closing

Reading and writing

  • Read reads delimited values.
  • Read_Line reads a line.
  • Read_Hex reads hex-encoded text.
  • Read_Block reads bytes into a string, WString, or UChar[].
  • Write writes text without a separator or line terminator.
  • Write_Line writes text followed by the current line terminator.
  • Write_Hex writes text as hex-encoded output.
  • Write_Block writes bytes from a string or UChar[].
  • Flush_Output flushes buffered output.

File management

Path resolution

DFPATH explains DF_OPEN_PATH, the semicolon-separated open path used to resolve relative file names for the FILE driver.

Advanced channel details

Sequential Channels explains channel allocation, current input/output channels, position and size commands, and the no-channel close forms.