# `File.Stream`
[🔗](https://github.com/elixir-lang/elixir/blob/v1.20.0-rc.3/lib/elixir/lib/file/stream.ex#L5)

Defines a `File.Stream` struct returned by `File.stream!/3`.

The following fields are public:

  * `path`          - the file path
  * `modes`         - the file modes
  * `raw`           - a boolean indicating if bin functions should be used
  * `line_or_bytes` - if reading should read lines or a given number of bytes
  * `node`          - the node the file belongs to

# `t`

```elixir
@type t() :: %File.Stream{
  line_or_bytes: term(),
  modes: term(),
  node: term(),
  path: term(),
  raw: term()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
