Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import tango.io.Stdout;
  2. import tango.io.device.File;
  3. import tango.io.stream.Format;
  4. import tango.io.stream.TextFile;
  5.  
  6. void main()
  7. {
  8. char[][] arraystring = new char[][](2);
  9. arraystring[0] = "hello";
  10. arraystring[1] = "world";
  11.  
  12. auto fileContent = new TextFileOutput("text.d.txt", File.WriteCreate);
  13. foreach(line; arraystring) {
  14. fileContent(line).newline;
  15. }
  16.  
  17. fileContent.flush;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement