> For the complete documentation index, see [llms.txt](https://jmdash.gitbook.io/jmdash-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jmdash.gitbook.io/jmdash-docs/jmbasics/syntax101/calling-functions/other-libraries/file-read-and-write.md).

# File: Read and Write

The **File: Read and Write** library is *basically* **JM-**'s own version of **C++**'s `<fstream>`,\
and can be included in a **JM-** Project using: `#incd .frnw`

If something isn't clear about the syntax shown below, we recommend you to check out the [examples category](/jmdash-docs/examples/code-examples.md)

## Syntax & Examples

Here's a list of every function included in the `.frnw` library;

{% code lineNumbers="true" %}

```c
// fs.new{} Stands for 'FileSystem.New'
// Used to create files
// Syntax (spaced): fs.new{ >> "<path>" << "<fileName>.<fileExtension>" };
#incd .frnw
fs.new{>> "~/" << "README.md"};
```

{% endcode %}

{% code lineNumbers="true" %}

```c
// fs.rnw{} Stands for 'FileSystem.ReadAndWrite'
// Used to read, write and create files
// Syntax (spaced): fs.rnw{"<sourcePath>" << "<destinationPath>"};
#incd .frnw
fs.rnw{"~/README.md" << "/tmp/README.md"};
```

{% endcode %}
