| 25 | } |
| 26 | |
| 27 | FastaWriter::~FastaWriter() |
| 28 | { |
| 29 | int n = fsync(fileno(m_fileHandle)); |
| 30 | if (n < 0) |
| 31 | die(m_path); |
| 32 | n = fclose(m_fileHandle); |
| 33 | if (n < 0) |
| 34 | die(m_path); |
| 35 | m_fileHandle = NULL; |
| 36 | } |
| 37 | |
| 38 | void FastaWriter::WriteSequence(const Sequence& seq, unsigned id, |
| 39 | unsigned multiplicity, const string& comment) |