Shorten file handling method.