You're right, this function was indeed missing in the header (afuncs.h).

If you need it now, you can add it yourself:

EXT_var F(file_str_writeto)(var handle,char*,var length);