> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/c/create_a_file.md).

# Create a file

```ruby
# Here
%f'output.txt' -> create
%d'docs'       -> create
 
# Root dir
Dir.root + %f'output.txt' -> create
Dir.root + %d'docs'       -> create
```
