### `tf.write_file(filename, contents, name=None)` {#write_file}

Writes contents to the file at input filename. Creates file if not existing.

##### Args:


*  <b>`filename`</b>: A `Tensor` of type `string`.
    scalar. The name of the file to which we write the contents.
*  <b>`contents`</b>: A `Tensor` of type `string`.
    scalar. The content to be written to the output file.
*  <b>`name`</b>: A name for the operation (optional).

##### Returns:

  The created Operation.

