Guest_imported
New member
- Jan 1, 1970
- 0
I have a input file that goes like this
2
BCDEFGHIJKLMNOPQRSTUVWXYZA
GFCSVBSZ, 2001
ZYXWVUTSRQPONMLKJIHGFEDCBA
GDL + GDL = ULFI
I want to read the first two and store it into an array. It wiil then loop it back to do the second group. However i canont get it to stop reading at the last 1 on line 2. It goes to to Z. The problem is that i need it to go 50 times because I don't know how long the second line is supposed to be. It can be up to 50 characters. Its reading the first alphabet fine but it won't read the second line without stoping. I am a beginner so as much help as possible please!
2
BCDEFGHIJKLMNOPQRSTUVWXYZA
GFCSVBSZ, 2001
ZYXWVUTSRQPONMLKJIHGFEDCBA
GDL + GDL = ULFI
I want to read the first two and store it into an array. It wiil then loop it back to do the second group. However i canont get it to stop reading at the last 1 on line 2. It goes to to Z. The problem is that i need it to go 50 times because I don't know how long the second line is supposed to be. It can be up to 50 characters. Its reading the first alphabet fine but it won't read the second line without stoping. I am a beginner so as much help as possible please!