# FileWriteLine()

Opens up the file (or uses the existing file object) and appends the given line of text

```
FileWriteLine( file=any, data=string );
```

**Returns:** void

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| file | any | Yes | the file object to which to write the line. |  |
| data | string | Yes | data to add to the file object. |  |

# Examples

```cfml
openFile = fileopen(filepath,"read");
readfromfile = filereadline(openfile);
filewriteline(filepath,readfromfile);
```







# Categories

[File handling](../../categories/files.md)