Write a C/C++ program that:
Writes a function, readFile(), that reads the content of the provided text file “stnumbers.txt” and stores it in an array of Student structs. The function receives as parameter an array of type Student structs. The number of lines that was read from the text file must be returned to the calling statement. If the file cannot be read, an error message should be displayed.
stnumbers.txt textfile is given below
Peterson20570856Johnson12345678Suku87654321Westley12345678Venter87654321Mokoena79012400Makubela29813360Botha30489059Bradley30350069
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here