Just a quick question. I'm using something like this
FileStream fs = new FileStream(fileName, FileMode.Create);
I was wondering whether there was a parameter I could pass to it to force it to create the folder if it doesn't exist. At the moment an exception is throw if folder isn't found.
If there is a better method then using FileStream
I'm open to ideas.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…