How to create the queue array of class from text file

In reply to rkg_:

It is still unclear to me where the masks are coming from. They should be known also for storing the expected values.