---
title: Input and Output
framework: swift
role: collectionGroup
role_heading: API Collection
path: swift/input-and-output
---

# Input and Output

Print values to the console, read from and write to text streams, and use command line arguments.

## Topics

### Text Output

- [print(_:separator:terminator:)](swift/print(_:separator:terminator:).md)
- [print(_:separator:terminator:to:)](swift/print(_:separator:terminator:to:).md)

### Command Line Input

- [CommandLine](swift/commandline.md)
- [readLine(strippingNewline:)](swift/readline(strippingnewline:).md)

### Streams

- [TextOutputStream](swift/textoutputstream.md)
- [TextOutputStreamable](swift/textoutputstreamable.md)

## See Also

### Programming Tasks

- [Debugging and Reflection](swift/debugging-and-reflection.md)
- [Macros](swift/macros.md)
- [Concurrency](swift/concurrency.md)
- [Key-Path Expressions](swift/key-path-expressions.md)
- [Manual Memory Management](swift/manual-memory-management.md)
- [Type Casting and Existential Types](swift/type-casting-and-existential-types.md)
- [C Interoperability](swift/c-interoperability.md)
- [Operator Declarations](swift/operator-declarations.md)
