Added promise example of file operations