question on reading from a file
I need to read some info into a couple of stacks. How can I read different info into each stack using only 1 input file. Is there a way to signal the program to only read for example two lines then the next two lines are for the next stack?? If I use an end of file condition everything is read into the first stack, correct?? I wasn't given option to set the size of the stack to only fit the data need so both stacks are the max size. The stacks are going to be filled with characters so a sentinel value has not worked.