--- title: "system.iec61850.writeFile" description: "This function uploads a file from a local path to the configured IEC 61850 device remote path." --- # system.iec61850.writeFile > This function uploads a file from a local path to the configured IEC 61850 device remote path. This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions This scripting function has no [Client Permission](../../../ignition-modules/vision/vision-project-properties/vision-project-properties.md#vision-permissions-properties) restrictions. ## Syntax `system.iec61850.writeFile(deviceName, localFilePath, remoteFilePath)` ### Parameters |Type | Parameter | Description | |------- | ------- | ------| |String| `deviceName` | The name of the configured IEC 61850 device.| |String| `localFilePath` | The local file path on client to pull the file contents from.| |String| `remoteFilePath` | The remote file path on the server of the file to write to.| ### Returns No return value. ### Scope Gateway, Perspective Session ## Code Examples ```python title="Example #1" # This example writes the file contents # from the local temporary path to the remote file path. device_name = 'IEC61850' file_name = 'COMFEDE.ced' tmp_path = '/usr/local/bin/ignition/COMFEDE/{0}'.format(file_name) file_path = '/{0}'.format(file_name) system.iec61850.writeFile(device_name, tmp_path, file_path) ```