本文介绍了检查正在使用的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 是否有一种简单的方法可以检查文件是否正在使用? 我想从我的.NET2程序中打开一个CSV文件并写入它。但是, 该文件可能正由另一个程序使用。如果是这样的话,我不会想要试图写信给它,只是中止。 谢谢, BrianIs there an easy way to check to see if a file is in use?I want to open a CSV file from my .NET2 program, and write to it. However,the file could be in use by another program. If that is the case, I don''twant to attempt to write to it, just abort.Thanks,Brian推荐答案 这篇关于检查正在使用的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-28 07:49