Backported file input