1 Welcome to PLT Scheme
2 Scheme Essentials
3 Built-In Datatypes
4 Expressions and Definitions
5 Programmer-Defined Datatypes
6 Modules
7 Input and Output
8 Contracts
9 Classes and Objects
10 Exceptions and Control
11 Iterations and Comprehensions
12 Regular-Expression Matching (Regexps)
13 Pattern Matching
14 Quasiquoting
15 Units (Higher-Order Modules)
16 Threads
17 Syntactic Extension (Macros)
18 Reflection and Dynamic Evaluation
19 Reader Extension
20 Security
21 Memory Management
22 Performance
23 Foreign-Function Interface (FFI)
24 Scripts
25 Graphical User Interfaces (GUIs)
26 More Tools
Index

contents

 index

← prev  up  next →

 

7 Input and Output

A Scheme 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.

    7.1 Varieties of Ports

    7.2 Default Ports

    7.3 Reading and Writing Scheme Data

      7.3.1 Serialization

    7.4 Bytes versus Characters

 

contents

 index

← prev  up  next →