0

I know how to create a file in bin/debug.

string file = "example"
StreamWriter outputStream = File.CreateText(file + ".txt");

But is it also possible to create a folder into bin/debug?

Mong Zhu
  • 23,309
  • 10
  • 44
  • 76
  • 3
    Possible duplicate of [If a folder does not exist, create it](http://stackoverflow.com/questions/9065598/if-a-folder-does-not-exist-create-it) – FCin Nov 25 '16 at 10:40
  • 1
    `System.IO.Directory.CreateDirectory` – FakeCaleb Nov 25 '16 at 10:40
  • [Directory.CreateDirectory Method (String)](https://msdn.microsoft.com/en-us/library/54a0at6s(v=vs.110).aspx) – Mong Zhu Nov 25 '16 at 10:50

1 Answers1

0
Directory.CreateDirectory("NewFolder");
Mong Zhu
  • 23,309
  • 10
  • 44
  • 76
MrApnea
  • 1,776
  • 1
  • 9
  • 17