Is there a way to read a file from the new "roc-platform-template-zig" or a way to get all the functions that it provides?
https://github.com/lukewilliamboswell/roc-platform-template-zig/
I can found only examples folder here.
You can see everything that the platform exposes here https://github.com/lukewilliamboswell/roc-platform-template-zig/tree/main/platform. It's intentionally a very small platform to lay the foundation for other platforms and to be used for testing and experimentation. It only offers Stdin/out/err. The platform you probably want is called basic-cli which is currently being upgraded to be usable with the current version of the compiler. You should keep an eye out for that, it'll probably be Luke Boswell posting about it. Everyone's super excited for the new compiler and basic-cli and basic-webserver being upgraded, so you'll definitely hear about it here on Zulip :)
@gavr if the file does not change during the execution of the program you can import it like this:
import "../README.md" as readme : Str
main! = |_args| {
echo!(readme)
Ok({})
}
Last updated: Apr 10 2026 at 12:38 UTC