Guest User

Untitled

a guest
Oct 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. string folderPath = @"C:UsersDavidDesktopFolder";
  2.  
  3. string firstSubFolderPath = System.IO.Path.Combine(folderPath, "firstSubFolder");
  4. string secondSubFolderPath = System.IO.Path.Combine(folderPath, "secondSubFolder");
  5.  
  6.  
  7. System.IO.Directory.CreateDirectory(firstSubFolderPath);
  8. System.IO.Directory.CreateDirectory(secondSubFolderPath);
  9.  
  10.  
  11. string subSubFolderPath = System.IO.Path.Combine(firstSubFolderPath, "subSubFolder");
  12. System.IO.Directory.CreateDirectory(subSubFolderPath);
  13. string firstTextFile = "firstTextFile.txt";
  14. string secondTextFile = "secondTextFile.txt";
  15.  
  16.  
  17. firstTextFile= System.IO.Path.Combine(subSubFolderPath, firstTextFile);
  18. secondTextFile= System.IO.Path.Combine(secondSubFolderPath, secondTextFile);
  19.  
  20. using (StreamWriter firstWriter = new StreamWriter(firstTextFile));
  21. using (StreamWriter secondWriter = new StreamWriter(secondTextFile));
Add Comment
Please, Sign In to add comment