Increase array size for holding files
Raise error when output file couldn't be opened