add file IO interface and ResolveLink interface

Signed-off-by: Colin Leung <colin@digi3studio.com>