---
title: "init(stringLiteral:)"
framework: system
role: symbol
role_heading: Initializer
path: "system/filepath/init(stringliteral:)"
---

# init(stringLiteral:)

Creates a file path from a string literal.

## Declaration

```swift
init(stringLiteral: String)
```

## Parameters

- `stringLiteral`: A string literal whose Unicode encoded contents to use as the contents of the path.

## See Also

### Creating a File Path

- [init()](system/filepath/init().md)
