> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionFileName

[Open topic with navigation](../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/Other/Functions/CAPLfunctionFileName.md)

[CAPL Functions](../../CAPLfunctions.md) » [General](../CAPLGeneralStartPage.md) » [Function Overview](../CAPLfunctionsGeneralOverview.md) » fileName

# fileName

[Valid for](../../../Shared/FeatureAvailability.md):  CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

## Function Syntax

```plaintext theme={null}
void fileName();
```

## Description

Output of the CAPL program name in the Write Window. Helpful for debugging purposes.

## Parameters

—

## Return Values

—

## Example

```plaintext theme={null}
...
fileName();
...
```

Result: output of actual filename of CAPL program to Write Window.

[elCount](CAPLfunctionElCount.md) • [runError](CAPLfunctionRunError.md)
