File api code snippets (1)