> For the complete documentation index, see [llms.txt](https://docs.sacruda.nl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sacruda.nl/sacruda-basic/functions-glossary.md).

# Functions Glossary

Sacruda BASIC functions are tools that give some kind of value. This page explains which functions there are, and how they can be used. For more information about functions themselves, and how you can use them in your program, take a look at the [Programmer guide](https://docs.sacruda.nl/sacruda-basic/programmer-guide.md).

### The ENV function

With `ENV(name)`, you can get any environment variable of a given name. For example:

<pre><code><strong>var user = env("CURRENTUSER")
</strong>print "Hello, $user"
</code></pre>

Running this code will print "Hello, (username)" to the console.

For more information, go to section §3.1 of the programmer guide, we talk about `ENV()` there.

### The FSREAD function

With `FSREAD(path)`, you can read a file's content and put it into a variable. For example, to read the list of installed user applications, one could use this code:

```
var apps = fsread("U:/System/Config/DistribSvc/InstalledPackages.json")

print "You have $apps[LEN] third-party applications installed"
```

Running this gives the following result:

```
You have 20 third-party applications installed.
```

## \[TO BE CONTINUED]
