Could someone please explain to me how to accomplish the following? I need to read in a file containing the following data structure:
BEGIN REQUEST DATA
FName: First
MNname: Middle
LName: Last
Address: 101 Street Address
City: MYCity
State/Province: New York
END REQUEST DATA
BEGIN REQUEST DATA
FName: First
MNname: Middle
LName: Last
Address: 101 Street Address
City: MYCity
State/Province: New York
END REQUEST DATA
What my question is is how do I move onto the next block of data as I move through the file? So far I have a routine that reads through the file and places all of the items into an array. After that it parses the data into an object but I'm not sure how to write the code to move to the next block of information.
Thanks,
Corinne
BEGIN REQUEST DATA
FName: First
MNname: Middle
LName: Last
Address: 101 Street Address
City: MYCity
State/Province: New York
END REQUEST DATA
BEGIN REQUEST DATA
FName: First
MNname: Middle
LName: Last
Address: 101 Street Address
City: MYCity
State/Province: New York
END REQUEST DATA
What my question is is how do I move onto the next block of data as I move through the file? So far I have a routine that reads through the file and places all of the items into an array. After that it parses the data into an object but I'm not sure how to write the code to move to the next block of information.
Thanks,
Corinne