i/o functions and operations

i want to make a quiz for that i have decided that i will store a number of questions in a text file and randomly display them in the output window. for that i need my program to start scanning, for the generated random number, in the text file and if found, print till it finds a flag to stop and that flag could be a "*" or any other special character.
can anyone tell me how can i do this since i am only a beginner in oops and dont know much i/o functions and operations.
Topic archived. No new replies allowed.