InputFile / OutpuFile: throw io exceptions