Guest User

Untitled

a guest
Sep 15th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.32 KB | None | 0 0
  1. import std.stdio;
  2.  
  3. void main(){
  4.  
  5.     File message = File( "sequence.txt", "r");
  6.     string valeur;
  7.    
  8.     string[string] tableau;
  9.    
  10.     foreach(ligne; message.byLine()){
  11.        
  12.         string lineStr = cast(string)ligne;
  13.        
  14.         if( ligne[0] == '>')
  15.             valeur = lineStr;
  16.         else if( ligne != "")          
  17.             tableau[valeur] ~= lineStr;
  18.  
  19.         }
  20.        
  21. }
Add Comment
Please, Sign In to add comment