# tf.raw_ops.ReadFile

<br />

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.raw_ops.ReadFile`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/ReadFile)

<br />

    tf.raw_ops.ReadFile(
        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 />