Atom

resource module

Read assets packaged into an executable or registered by an embedder.

Import it with 'use resource'.

Save this as 'asset.atom'. Create 'title.txt' containing 'Atom', then run 'atom build asset.atom -o asset-app --resource title=title.txt' and launch the result.

Atom
use resource
use binary
print(binary.text(resource.read('title')))
Output
Atom

Available when a host supplies a named resource loader. Packaged applications install a loader for embedded assets.

Functions