Use compat method for file handling.