Handle file objects