> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.3/api/csharp/yarn.compiler/yarn.compiler.project/yarn.compiler.project.savetofile.md).

# SaveToFile(string)

Method in [Project](/2.3/api/csharp/yarn.compiler/yarn.compiler.project.md)

## Summary

Saves a [Project](/2.3/api/csharp/yarn.compiler/yarn.compiler.project.md) 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. |
