[io.file.load]

io.file.load is a slot in the io namespace, in Hyperlambda, the language of Magic Cloud. Loads a text file from the server.

Also known as: load-file.

  • Value (file-path), required: File path to load
  • Returns: Resolves to the loaded file content

Guide: How to use [io.file.load]

JSON declaration

This is the complete declaration of io.file.load, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "io.file.load",
  "description": "Loads a text file from the server",
  "signature": {
    "input": {
      "kind": "file-path",
      "description": "File path to load",
      "required": true,
      "mode": "ValueOrExpression"
    },
    "output": {
      "mode": "Value",
      "kind": "text-file-content,text",
      "description": "Resolves to the loaded file content"
    }
  }
}

← io.file.list-recursively all io.* slots io.file.load-recursively →