Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't get input to work!

Status
Not open for further replies.

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!
 
Can you post the code you use to parse the read the file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top