=proto const char *duk_push_string_file(duk_context *ctx, const char *path); =stack [ ... ] -> [ ... data! ] =summary

Push the contents of a file path into the stack as string data. The file should be CESU-8 formatted if Ecmascript string compatibility is necessary. A pointer to the interned string data is returned. If the operation fails, throws an error.

If path is NULL, throws an error.

=example duk_push_string_file(ctx, "test.js"); =tags stack string