I am a math teacher and I have a .tex template for my quizzes that looks something like this:
\begin{document}
\begin{flushleft}
Name: \underline{\hspace{2in}} \hfill /XX % where XX is the total possible points
\end{flushleft}
%\includeQuestionFrom{"../Questions/bankA.tex"} %Randomly chooses question from file "bankA.tex".
%\includeQuestionFrom{"../Questions/bankB.tex"} %Randomly chooses question from file "bankB.tex".
\includeQuestionFrom{"../Questions/bankC.tex"} %Randomly chooses question from file "bankC.tex".
%\includeQuestionFrom{"../Questions/bankD.tex"} %Randomly chooses question from file "bankD.tex".
\includeQuestionFrom{"../Questions/bankE.tex"} %Randomly chooses question from file "bankE.tex".
.
.
.
%\includeQuestionFrom{"../Questions/bankZ.tex"} %Randomly chooses question from file "bankZ.tex".
\end{document}
In this case the generated quiz would have one question from bankC and one question from bankE. So far this system has been working great, however, I find myself fussing about with commenting and uncommenting lines more than I would care to admit, as such, I am trying to write myself a program or script to essentially do the commenting/uncommenting bit for me. I imagine the interface to be simple, similar to
The only problem is that I have absolutely no idea where to start on the backend.
