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...


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


Peterson
20570856
Johnson
12345678
Suku
87654321
Westley
12345678
Venter
87654321
Mokoena
79012400
Makubela
29813360
Botha
30489059
Bradley
30350069



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here