# SaveToFile(string)

Method in [Project](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.project)

## Summary

Saves a [Project](https://docs.yarnspinner.dev/api/csharp/yarn.compiler/yarn.compiler.project) as JSON-formatted text to a file on disk.

```csharp
public void SaveToFile(string path);
```

## Parameters

| Name          | Description                       |
| ------------- | --------------------------------- |
| `string` path | The path of the file to write to. |
