# Files
{id: files}


## Filesystem pathes
{id: filesystem-pathes}
{i: dirname}
{i: basename}

![](examples/files/pathes.R)

## Filesystem get current working directory (cwd)
{id: get-current-working-directory}
{i: getwd}
{i: cwd}

![](examples/files/getcwd.R)

## Concatenate pathes
{id: concatenate-pathes}
{i: file.path}

![](examples/files/concatenate_pathes.R)

## Change directory
{id: change-directory}
{i: getwd}
{i: setwd}

![](examples/files/cd.R)

## Recursively list files and directories
{id: list-files-and-directories}
{i: list.dirs}
{i: list.files}

![](examples/files/list_dirs.R)

## Write to a textfile
{id: write-to-a-textfile}
{i: file}
{i: cat}

![](examples/files/write_to_file.R)

## Read a textfile
{id: reade-a-textfile}

![](examples/files/read_file.R)


## Counter with file storage
{id: counter-with-file-storage}

![](examples/files/counter.R)
