So I'm trying to output information in a file into the values however I cant figure out how to separate them properly and make it output the entire file.
The .txt has this in it:
1 2 3 4 5 6 7 8 9
12345
R
790
29888
X
38116
P
375
982
So heres what i got so far but for some reason it doesnt even start reading from the beginning of the file and skips the first 3 lines
I want the output to look somewhat like this:
Enter ID: 12345
Enter code: R
Enter minutes: 790
Enter ID: 29888
Enter code: X
Invalid code
Enter ID: 38116
Enter code: P
Enter day minutes: 375
Enter night minutes: 982
Try to explain it in the most basic terms if you can
Thanks