added example to show direct File support