boxlang-file-handling

Automate file-system tasks in BoxLang to read, write, copy, move, and delete files and directories.

16|78|Updated Nov 28, 2014
One-click install
npx skills add https://github.com/ortus-docs/coldbox-docs --skill boxlang-file-handling
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: boxlang-file-handling
Source: https://github.com/ortus-docs/coldbox-docs/tree/main/.agents/skills/boxlang-file-handling
Command: npx skills add https://github.com/ortus-docs/coldbox-docs --skill boxlang-file-handling

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Simplifies and secures file-system operations in BoxLang by exposing high-level, safe APIs for common tasks such as reading, writing, copying, moving, and deleting files and directories.

Core Features & Use Cases

  • Read and write text with explicit encoding
  • List, create, copy, move, and delete directories
  • Stream large files, upload, and process CSV/JSON
  • Use cases include configuration loading, log management, asset processing, and batch workflows

Quick Start

Read a file from disk, modify it, and save the result.

Frequently Asked Questions about boxlang-file-handling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read and write files with explicit encoding in BoxLang?

To read and write files in BoxLang, use the high-level file handling APIs that enforce explicit text encoding for safe I/O operations. This ensures consistent character encoding during file read and write tasks.

What is the best way to stream large files in BoxLang without memory issues?

Streaming large files in BoxLang is handled by safe I/O patterns that support stream processing. This approach allows you to process large files, upload data, and parse CSV or JSON efficiently without exhausting memory.

Can I list, create, and delete directories programmatically in BoxLang?

Yes, directory operations in BoxLang support listing, creating, copying, moving, and deleting directories. These comprehensive directory-list capabilities automate project workflows like asset handling and batch processing.

Does BoxLang support batch processing and configuration loading from the filesystem?

BoxLang file handling automates configuration loading, log management, and asset processing through safe filesystem APIs. It directly supports batch processing workflows by reading, writing, and moving files programmatically.

Why should I use BoxLang file handling APIs instead of manual I/O operations?

BoxLang file handling APIs simplify and secure filesystem operations by enforcing safe I/O patterns and explicit encoding. Using these APIs prevents common errors associated with manual file read, write, and directory operations.