Skip to content
ExamplesOpen editor ↗

tlisaMelaYaMokwalo

→ loadStrings()

Loads lines of text.

tlisaMelaYaMokwalo(URL, [faGoSiame], [faGoPalelwa])

Returns a Promise; use letela inside a function. External URLs are allowed without an endpoint allowlist or proxy. Browser CORS, mixed-content and credential rules still apply. JSON object keys remain unchanged. Resolves to an array split at LF or CRLF. A trailing newline produces a final empty string.

NameTypeDescription
URL`mokwaloRequest`
faGoSiame (optional)tiroSuccess callback. Its return becomes the Promise value.
faGoPalelwa (optional)tiroError callback; returning recovers the Promise, throwing rejects it.
Loads lines of text.
tiro setaLoeto() {
  tlosaKanefase();
  diri d = letela tlisaMelaYaMokwalo("data:text/plain,Dumela%0ALefatshe");
  bopaTemana(d[0]);
}

bopaTemana, dirisaMoGo