---
title: Core · IO & Files
description: Reading, writing, streams and processes.
canonical: https://rubydoc.ai/docs/core-io.md
source: RubyDoc.AI
---

# Core · IO & Files

Reading, writing, streams and processes.

- [IO](https://docs.ruby-lang.org/en/master/IO.html) — Base class for input/output streams.
- [File](https://docs.ruby-lang.org/en/master/File.html) — File I/O and path operations.
- [Dir](https://docs.ruby-lang.org/en/master/Dir.html) — Directory traversal and globbing.
- [Pathname](https://docs.ruby-lang.org/en/master/Pathname.html) — Object-oriented file paths (stdlib).
- [StringIO](https://docs.ruby-lang.org/en/master/StringIO.html) — IO-like interface over a String.

---

Part of the [RubyDoc.AI](https://rubydoc.ai) documentation index. See also [docs.md](https://rubydoc.ai/docs.md) and [llms.txt](https://rubydoc.ai/llms.txt).
