[Seqan-dev] readRecord error


Greetings Everyone,

i am quite new by sequan, and i have a problem.

I want to use the the readRecord function. I the tutorials and the
documentation, and made a simple program:

   SequenceStream inStream(argv[1]);
    if ( isGood(inStream) )
    {
    while ( !atEnd(inStream) )
    {
    String<char> id;
    String<Dna5> seq;
    if (readRecord(id, seq, inStream) != 0){std::cerr << "ERROR:
readRecord\n";return 1;}

        (...)
    }
    }

I read from a fasta file, and make something with the sequences at
character level, it doesn't matter, what. The two first sequences
are readed, but then i get my error message, independent from the
content of the third record, for example even if i copy the first
record after the second, it is the same.

is there a special behaviour of the fasta parsing i have to know, or
do i make something wrong? I use linux, i wrote a simple console
application, and the its input independent as far as i see.

And an other question: is the german language allowed on this mailing list?

Many-many thanks!

Daniel

Live long and prosper
Bartha Dániel
MTA-VMRI, 2013