Perfect file handling