# Function copyFileSync (fromFile, toFile)
>**copyFileSync**(fromFile, toFile)
- Copy file synchronously
- See [Functions](../functions.md)
## Parameters
| Parameter |Type |Default |Description |
| ---- | ---- | ---- | ---- |
**fromFile** |string | |The file to copy from |
**toFile** |string | |The file to copy to |