- TIBCO BusinessEvents®
- Standard
- File

# File.fileTruncateAndWrite()

## Signature

`void fileTruncateAndWrite(Object fileWriter, Object byteContents)`

## Domain

ACTION

## Description

Truncate existing file and write any new contents.

## Parameters

Name | Type | Description
--- | --- | ---
`fileWriter` | `Object` | The filewriter object.
`contents` | `Object` | byte[] representing new contents to write.

## Returns

Type | Description
--- | ---
`void` |