# FileClose()

Closes an file that is open.

```
FileClose( file=any );
```

**Returns:** void

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| file | any | Yes | The file to close. *Alias: fileObj* |  |

# Examples

```cfml
testFile = fileopen("filepath"),"write");
filewriteline(testfile,"I am the example of fileclose");
fileclose(testfile);
```







# Categories

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