Skip to content

Read command

Alvin Cheng edited this page Feb 11, 2023 · 1 revision

Description

This is the read command, this command will read the file from the directory in parameter one and return the contents of the file in parameter two. Please note that this command requires permission for the CLI to access your local file system, this may especially be true on MacOS! If you did not understand, feel free to see the example below:

Returning data into variables

If you skipped a few pages, you may wonder how we can return data from commands into variables. I have already mentioned how this worked in this wiki post.

Example

$FILE_CONTENTS = (read "FILE_PATH");
Clone this wiki locally