# IO and system

- [IO](https://www.agentica-lang.com/agentica/library/io-and-system/io/index.md): print to standard output and error, and read standard input.
- [File, Dir and Path](https://www.agentica-lang.com/agentica/library/io-and-system/files/index.md): read and write files, list and create directories, and build paths.
- [Process](https://www.agentica-lang.com/agentica/library/io-and-system/process/index.md): start other programs, talk to them and wait for them.
- [TCP, TLS and HTTP](https://www.agentica-lang.com/agentica/library/io-and-system/network/index.md): DNS lookups, sockets, an HTTP client and an HTTP server.
- [Archive](https://www.agentica-lang.com/agentica/library/io-and-system/archive/index.md): extract named files from TAR and ZIP archives into a new private directory.
- [Logger](https://www.agentica-lang.com/agentica/library/io-and-system/logger/index.md): levels, named handlers, and text or JSON lines on stderr.
- [System, Time and Random](https://www.agentica-lang.com/agentica/library/io-and-system/system/index.md): program arguments, exit codes, clocks and random numbers.
- [Option parser](https://www.agentica-lang.com/agentica/library/io-and-system/option-parser/index.md): read the command line into typed values, with defaults, choices, errors and a help text.
- [Native code](https://www.agentica-lang.com/agentica/library/io-and-system/native/index.md): call C functions of a native library with an `extern` block.

Files, processes and the network return a `Result` and take timeouts in milliseconds.

## Pages in this section

- [IO](https://www.agentica-lang.com/agentica/library/io-and-system/io/index.md): Print to standard output and error, and read standard input.
- [File, Dir and Path](https://www.agentica-lang.com/agentica/library/io-and-system/files/index.md): Read and write files, list and create directories, and build paths.
- [Process](https://www.agentica-lang.com/agentica/library/io-and-system/process/index.md): Start other programs, talk to them through their input and output, and wait for them.
- [TCP, TLS and HTTP](https://www.agentica-lang.com/agentica/library/io-and-system/network/index.md): DNS lookups, TCP and TLS sockets and the HTTP/1.1 client and server of std/http.
- [System, Time and Random](https://www.agentica-lang.com/agentica/library/io-and-system/system/index.md): Program arguments, environment variables, exit codes, clocks and random numbers.
- [Logger](https://www.agentica-lang.com/agentica/library/io-and-system/logger/index.md): Levels, named handlers and text or JSON lines on stderr with std/logger.
- [Native code](https://www.agentica-lang.com/agentica/library/io-and-system/native/index.md): Call C functions of a native library with an extern block.
- [Types and resources](https://www.agentica-lang.com/agentica/library/io-and-system/native/types/index.md): The C types of an extern block, variadic functions, reading memory that C returns, owned buffers and typed memory, resources that own a C pointer and arenas that close them, out parameters, calls through C function pointers, callbacks that C calls, and C structs passed by value or through a pointer.
- [SQLite](https://www.agentica-lang.com/agentica/library/io-and-system/native/sqlite/index.md): A real library, SQLite through an extern block, with safe functions that return Result.
- [Compute calls](https://www.agentica-lang.com/agentica/library/io-and-system/native/compute/index.md): Run a long C call on the compute pool, so the other tasks keep running.
- [Waiting on a descriptor](https://www.agentica-lang.com/agentica/library/io-and-system/native/waiting/index.md): Park a task until a C library's socket or descriptor can be read or written.
- [Wrapping a C library](https://www.agentica-lang.com/agentica/library/io-and-system/native/wrapping/index.md): Hide the C habits of a library (return codes, out pointers, varargs) behind a normal Agentica API, and ship it in a package.
- [Native modules](https://www.agentica-lang.com/agentica/library/io-and-system/native/modules/index.md): Call C code written for Agentica with Agentica types, a whole result in one call.
- [Option parser (std)](https://www.agentica-lang.com/agentica/library/io-and-system/option-parser/index.md): The std/option_parser module, which reads the command line of a program into typed values, with defaults, choices, errors and a help text.
- [Archive](https://www.agentica-lang.com/agentica/library/io-and-system/archive/index.md): The Archive module, which extracts named files from TAR and ZIP archives.
