need to write a FileArray class that has a static method writeArray that takes t
ID: 3638761 • Letter: N
Question
need to write a FileArray class that has a static method writeArray that takes two arguments, the name of a file and a reference to an int array. The file should be opened as a binary file, the contents of the array should be written to the file, and then the file should be closed.A second method, readArray, also take 2 arguments the name of a file and a reference to an int array. File should be opened, data should be read from the file and stored in the array, and then the file should be closed. Demonstrate both methods in a program.