I am trying to put information from a file into arrays but I am not getting it right. The data is not getting saved into any of the arrays. What am I missing to save the data correctly.
Info in file:
Schweller Poobah 72 1 79
Wylie Czar 65 68 81
Kim Boss 77 70 85
Ayati Capitan 95 92 97
Zhang Honcho 93 98 91
Yu Chief 90 96 93
Egle Vizier 87 82 89
Dietrich Bigwig 85 86 88
In terms of your question you open an input stream in main(), but saveData() (odd name for something that reads data) knows nothing about this stream; indeed it tries, fruitlessly, to declare another, which isn't connected to a file. You could pass the stream from main() to saveData() as a reference argument, or you could open the stream within saveData() - but don't do both.
Beyond that, your arrays have 8 elements, indexed from 0 to 7, so line 9 is a recipe for disaster.
I think I would be looking to use a single array of structs rather than parallel arrays, but that's for another day. Likewise, the number of employees is unlikely to be fixed, so a std::vector would be better than a fixed-size array, especially with the "magic number" 8 appearing here there and everywhere.