Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

fileTruncate

truncate(path_to_file)

Package

file

Alias

Pkg Usage

truncate(path_to_file)

Description

Excerpt
hiddentrue
Clears the content of the specified file. Creates a new file if the one you want to clear content for doesn’t exist.

Clears the content of the specified file. Creates a new file if the one you want to clear content for doesn’t exist.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

path_to_file

String

Yes

Name of the file you want to truncate.

Return Type

Boolean

Returns true if the file is truncated.

Example

Example 1

Code Block
languagejs
use "file";
truncate("fileToTruncate.txt");

fileTruncate("fileToTruncate.txt");

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "file_

...

routine" and space = currentSpace ( )
labelsarray_routines