本文介绍了C#中的CreateDirectory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i我在我的电脑上使用CreateDirectory方法创建一个目录&

它也在创建

但是当我使用Streamwriter在该文件夹中写入一些文件时,它表示

访问被拒绝。

解决方案

很明显,没有足够的权限文件目录



请通过右键单击该文件夹提供适当的许可 - >属性 - >安全选项卡。



hi

i am creating a directory in my pc using CreateDirectory method &
it is creating also
but when i am using Streamwriter to write some file inside that folder it is saying that that
access is denied.

解决方案


It is quite clear that there is insufficient permission to that File or Directory.

Please provide appropriate permission by Right Click on that Folder-> Properties -> Security Tab.



这篇关于C#中的CreateDirectory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 02:19