The basic file format is lines of plain Unicode (or ASCII) text. Most lines begin with a command which is a single capital letter followed by a Unicode space character. Null lines are silently ignored. Lines beginning with the comments character "#" are allowed on input but will be lost when the file is saved.
Every file must begin with an X line. The arguments are the course number, the exam (A, B, or C) and the version number. The second line must be a T line, with the course title. The third line must be an N line, with the maximum number of questions for the course. Here is an example of the first three lines:
X 471 A D.1 T Java for Programmers Hands-On N 40
Q 1 What does it all mean? O 1 R C A 20? B 30? C 42? D 100?
And another:
Q 3 Given the code\ int i = 0;\ What is the value of i? A 0 B 1 C 2 D 3 R A O 2