Extract file handling class