> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vectorshift.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Text to File Node

> Convert text into a file

<img src="https://mintcdn.com/vectorshift/B2X2zpDX7crEnhCG/images/platform/pipelines/data-transformation/text-to-file.png?fit=max&auto=format&n=B2X2zpDX7crEnhCG&q=85&s=544a329eca8efe8e5498d1127ec1e430" alt="Text to File" width="494" height="273" data-path="images/platform/pipelines/data-transformation/text-to-file.png" />

The text to file node allows you to convert text into a file with a file type of your choice.

## Node Inputs

1. Text to convert to file: The text you want to convert into a file.
   * Type: `Text`
2. File Type: The type of file you want to create.
   * Type: `Dropdown`

## Node Outputs

1. File: The converted file
   * Type: `File`
   * Example usage: `{{text_to_file_0.file}}`
2. File Type: The type of file you created.
   * Type: `Text`
   * Example usage: `{{text_to_file_0.file_type}}`

## Example

The below example shows a pipeline that takes a text and converts it into a file.

1. Text Node: Contains the text `Hello, how are you doing?`
2. Text to File Node: Converts the text into a file.
   * Text to convert to file: `{{text_0.text}}`
   * File Type: `PDF`
3. Output: The converted file
   * Output: `{{text_to_file_0.file}}`

<img src="https://mintcdn.com/vectorshift/B2X2zpDX7crEnhCG/images/platform/pipelines/data-transformation/text-to-file-example.png?fit=max&auto=format&n=B2X2zpDX7crEnhCG&q=85&s=c37598c245bb75eae299969998685f7c" alt="Text to File Example" width="1905" height="834" data-path="images/platform/pipelines/data-transformation/text-to-file-example.png" />

<img src="https://mintcdn.com/vectorshift/B2X2zpDX7crEnhCG/images/platform/pipelines/data-transformation/text-to-file-example-run.png?fit=max&auto=format&n=B2X2zpDX7crEnhCG&q=85&s=ee00ffbb693f09a1aa1570af7f32c3fa" alt="Text to File Example" width="1890" height="781" data-path="images/platform/pipelines/data-transformation/text-to-file-example-run.png" />
