是否有任何可以在C#中打开文件的最大数量限制吗? [英] Is there a limit on the maximum number of files that can be opened in C#?

查看:112
本文介绍了是否有任何可以在C#中打开文件的最大数量限制吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提出一个应用程序,它需要同时打开至少676文件最大为1400的文件。我将使用的StreamWriter 类,并使用的StreamReader 类读取数据写入这些文件。那么,有没有就没有,可以在下面的链接描述同时打开读或写在C#就像VC ++文件的最大限制。
是否有数量限制打开文件在Windows

I am making an app and it needs to open at least 676 files simultaneously to a maximum of 1400 files. I will be writing to these files using the StreamWriter Class and reading the data using StreamReader Class. So, is there a maximum limit on the no of files that can be opened simultaneously for reading or writing in C# just like VC++ as described in the following link. Is there a limit on number of open files in Windows.

推荐答案

由.NET打开的文件的上限由强加在Win32 API的CreateFile,这是16384的限制规定。

The upper limit on files opened by .NET is governed by the limit imposed on the Win32 API CreateFile, which is 16384.

这篇关于是否有任何可以在C#中打开文件的最大数量限制吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆