Array/File Functions Write a function named arrayToFile. The function should acc
ID: 3643954 • Letter: A
Question
Array/File FunctionsWrite a function named arrayToFile. The function should accept 3 arguments:
The name of the file, a pointer to an array, and the size of the array. The function should open the specified file in binary mode, write the contents of the array to file, and then close the file.
Write another function named fileToArray. This function should accept 3 arguments: the name of the file, a pointer, to an int array, and the size of the array. The function should open the specified file in binary mode, read its content into the array, and then close the file.
Write a complete program that demonstrates these functions by using the array Tofile, and then using the fileToArray function to read the data from the same file. After the data are read from the file into the array, display the arrays contents on the screen.