You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
498 B

=proto
const char *duk_push_string_file(duk_context *ctx, const char *path);
=stack
[ ... ] -> [ ... data! ]
=summary
<p>Push the contents of a file <tt>path</tt> 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.</p>
<p>If <tt>path</tt> is NULL, throws an error.</p>
=example
duk_push_string_file(ctx, "test.js");
=tags
stack
string