Example Program
File Format I/O
Accessing sequence data in files.
File "file_format.cpp"
A tutorial about the use of files and file formats.
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 |
Open a standard library stream for binary write.
You can use both C++ iostreams or old style FILE pointer.
The file format is Fasta.
12 | |
13 | |
14 |
Read a fasta file.
15 | |
16 | |
17 | |
18 |
Read the meta-information.
19 | |
20 |
Read the sequence.
21 | |
22 | |
23 |
Open a file using a file reader string.
24 | |
25 | |
26 | |
27 | |
28 |
See
SeqAn - Sequence Analysis Library - www.seqan.de