# TextFile A `TextFile` represents a text file. For performance reasons, use [`TextStream`](./TextStream.html), when possible, instead. `TextFile` is a JavaScript object with the following properties: - `data`: String with the text data. - `path`: File path string.