Name
ChangeDirectory -- change the current directory
Synopsis
ChangeDirectory(dir$[, t])
Function
This function changes the directory to the one specified in dir$.

Starting with Hollywood 10.0, this function accepts an optional table argument which supports the following tags:

Adapter:
This tag allows you to specify one or more filesystem adapters that should be asked to handle the operation. This must be set to a string containing the name(s) of one or more adapter(s). Defaults to the adapter set using SetDefaultAdapter(). See Loaders and adapters for details. (V10.0)

UserTags:
This tag can be used to specify additional data that should be passed to filesystem adapters. If you use this tag, you must set it to a table of key-value pairs that contain the additional data that should be passed to plugins. See User tags for details. (V10.0)

Inputs
dir$
directory to make the current directory
t
optional: table argument containing further options (see above) (V10.0)
Example
ChangeDirectory("Data")
OpenFile(1, "Highscores.txt")
CloseFile(1)
The above code changes the current directory to "Data" and opens the file "Highscores.txt" inside the "Data" directory.

Show TOC