From Genome Analysis Wiki
no edit summary
== Use of the FastQFile class
Generally this class is used to read a fastq file and perform operations on the sequences.
Here is an example of how this would be done.
String filename = <your filename>;
// Report the error and exit (handled by error).
error("Failed to open file: %s", filename.c_str());
// Keep reading the file until there are no more fastq sequences to process.
// Close the input file.
true/false); // It is up to you to determine what is considered success/failure.