-
Notifications
You must be signed in to change notification settings - Fork 0
Read command
Alvin Cheng edited this page Feb 11, 2023
·
1 revision
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:
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.
$FILE_CONTENTS = (read "FILE_PATH");
- Home
- Setup
- Print command
- Variables and set command
- Append command
- Array command
- Call command
- Clear command
- Compare command
- Concat command
- Create command
- Delay command
- Delete command
- Disable command
- Enable command
- Exit command
- Export command
- Fetch command
- Functions and the function command
- Get command
- If statements
- Import command
- Length command
- Load string command
- Object command
- POST command
- Prompt command
- Read command
- Remove command
- Repeat command
- Shell command
- Write command
- Calculate command
- Sin cos and tan commands
- PI command
- Rand command
- Round command
- Sqrt command
- Delete message command
- Get messages command
- Follow user command
- Get public rooms command
- Get rooms command
- Join room command
- Login command
- On message command
- Remove room command
- Room exists command
- Send message command
- Signout command
- Final words&thoughts