Finished writing char[] to file