Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import std.stdio;
- void main(){
- File message = File( "sequence.txt", "r");
- string valeur;
- string[string] tableau;
- foreach(ligne; message.byLine()){
- string lineStr = cast(string)ligne;
- if( ligne[0] == '>')
- valeur = lineStr;
- else if( ligne != "")
- tableau[valeur] ~= lineStr;
- }
- writeln(tableau);
- }
Add Comment
Please, Sign In to add comment