# tf.io.read_file

<br />

|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/io/read_file) |

Reads and outputs the entire contents of the input filename.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.io.read_file`](https://www.tensorflow.org/api_docs/python/tf/io/read_file), [`tf.compat.v1.read_file`](https://www.tensorflow.org/api_docs/python/tf/io/read_file)

<br />

    tf.io.read_file(
        filename, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `filename` | A `Tensor` of type `string`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor` of type `string`. ||

<br />