I have 3 different text files.
P6_in1.txt
4 4 2
Max Key 10 10 10 10 20 20 20 20 100 100
Franklin Ben 10 10 10 10 20 20 20 20 100 100
Washingtonian George 10 10 0 10 20 0 0 20 100 80
P6_in2.txt
3 3 3
Key Max 15 10 15 20 30 30 60 100 80
P6_in3.txt
2 6 2
Solution Key 10 10 10 10 20 20 20 20 100 100
Washington George 10 10 10 10 20 20 20 20 100 100
Jefferson Thomas 10 0 8 6 20 15 13 0 80 90
Franklin Benjamin 0 0 0 0 20 10 20 10 100 50
Lincoln Abraham 10 5 10 5 0 0 0 0 80 30
Madisonville James 5 7 9 3 10 12 14 16 0 0
Wilson Woodrow 2 4 6 8 10 12 14 16 74 89
Hoover Herbert 0 10 10 10 0 20 20 20 0 100
Roosevelt Franklin 0 0 0 0 0 0 0 0 0 0
I need to write a program that works for all 3 which reads in all this information. It skips the first line and then assigns each name to a variable and each number to a variable so later i can use those variables to do some simple math. Ill also have to format it something like this but im just not sure how to read each name and number in and assign them to a variable. enter image description here