► |  | The Racket Guide

1 | Welcome to Racket
2 | Racket Essentials
3 | Built-In Datatypes
4 | Expressions and Definitions
5 | Programmer-Defined Datatypes
6 | Modules
7 | Contracts
8 | Input and Output
9 | Regular Expressions
10 | Exceptions and Control
11 | Iterations and Comprehensions
12 | Pattern Matching
13 | Classes and Objects
14 | Units (Components)
15 | Reflection and Dynamic Evaluation
16 | Macros
17 | Creating Languages
18 | Performance
19 | Running and Creating Executables
20 | More Libraries
21 | Dialects of Racket and Scheme
22 | Command-Line Tools and Your Editor of Choice
| Bibliography
| Index

▼ | 8 | Input and Output

8.1 | Varieties of Ports
8.2 | Default Ports
8.3 | Reading and Writing Racket Data
8.4 | Datatypes and Serialization
8.5 | Bytes, Characters, and Encodings
8.6 | I/ O Patterns

top← prev up next →

### 8`` Input and Output

A Racket port represents an input or output stream, such as a file, a terminal, a TCP connection, or an in-memory string. More specifically, an input port represents a stream from which a program can read data, and an output port represents a stream for writing data.

8.1 Varieties of Ports
8.2 Default Ports
8.3 Reading and Writing Racket Data
8.4 Datatypes and Serialization
8.5 Bytes, Characters, and Encodings
8.6 I/O Patterns

top← prev up next →