---
name: "sc_create_file"
section: "3"
platform: "linux"
package: "libopensc2-dev"
version: "0.11.13-1.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_create_file"
---

# sc\_create\_file(3)

Create a file object

## NAME

sc\_create\_file - Create a file object

## SYNOPSIS

```
#include <opensc.h>
int sc_create_file(sc_card_t *card, sc_file_t *file);
```

## DESCRIPTION

This function creates a file on *card*. The *file* must have been created with a call to sc\_file\_new() beforehand.
