---
title: "init(fileURL:filename:typeIdentifier:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/infile/init(fileurl:filename:typeidentifier:)"
---

# init(fileURL:filename:typeIdentifier:)

Creates a new file object with the specified URL and identifier.

## Declaration

```swift
init(fileURL: URL, filename: String?, typeIdentifier: String?)
```

## Parameters

- `fileURL`: The URL associated with the file.
- `filename`: The name of the file.
- `typeIdentifier`: The type associated with the file.

## Return Value

Return Value A new INFile object containing the supplied information.

## See Also

### Initializing a File Object

- [init(data:filename:typeIdentifier:)](intents/infile/init(data:filename:typeidentifier:).md)
