Code added to read array of characters and output them to a file; for testing purposes