Hacker News new | ask | show | jobs
by bainsfather 3833 days ago
"There is no API to pass a filename"

Use:

convertToString(filename, sourceStr);

and pass sourceStr.

You are right about how much boilerplate there is - though you can hide it a bit with helper fns and a few macros.