Mad Gab implementing io file stream

The program stores the text file into a stream. It then finds the location of brackets, and the number immediately following the brackets. Depending on the number following the bracket (implements a switch statement) it inputs a stream determined by the user.