Interesting task

ok so who can solve this task:
you have an input file which is input.txt in that file you have:
Question
Answer1
Answer2
Answer3
(etc..)
Now on the first question answer1 is correct, on the second question answer2 will be correct, on the third question answer3 is correct answer, and then on the forth question again answer1 is correct and that's how it goes until the end of the file, now you need 4 *.txt files as outputs, question.txt, which outputs a new question in order as put in input file, then correctAnswer.txt, which outputs correct answer for each of the questions, again in order, and the two files wrongAnswer1.txt and wrongAnswer2.txt which output both wrong answers for questions, in order so here is an example:
input(input.txt):
Question1
Answer1
Answer2
Answer3
Question2
Answer1
Answer2
Answer3
Question3
Answer1
Answer2
Answer3
Question4
Answer1
Answer2
Answer3
output:
(question.txt file)
Question1
Question2
Question3
Question4
(correctAnswer.txt file)
Answer1
Answer2
Answer3
Answer1
(wrongAnswer1.txt file)
Answer2
Answer1
Answer1
Answer2
(wrongAnswer2.txt file)
Answer3
Answer3
Answer2
Answer3
Last edited on
Sounds like a home work assignment, what have you done so far?
sounds like you're trying to get someone to do your homework for you to me ;)
Sounds like a home work assignment, what have you done so far?

ha
Topic archived. No new replies allowed.