使用C#.Net编写大小大于2 GB的程序文件 [英] programming files of size larger than 2 GB using C#.Net

查看:107
本文介绍了使用C#.Net编写大小大于2 GB的程序文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用c Sharp将大型内容动态写入磁盘.任何建议或参考,不胜感激.

How to write large content to disk dynamically using c sharp. any advice or reference is appreciated.

我正在尝试创建文件(自定义格式和扩展名)并写入文件.用户将上载一个文件,并将其内容转换为字节流并写入该文件(filename.hd).上载文件的索引在另一个文件(filename.hi)中完成.

Iam trying to create a file(custom format and extension)and writing to it. The User will upload a file and its contents are converted to byte stream and is written to the file(filename.hd).The indexing of the uploaded files is done in another file(filename.hi).

当"filename.hd"文件大小超过2GB时,文件大小为2 GB时,这对我来说是正常的,这不允许我添加内容.这是我的问题.

This works fine for me when the "filename.hd" file size is 2 GB when it exceeds 2GB it is not allowing me to add the content.This is my problem.

在谷歌搜索之后,我发现基于FAT 32 Windows的系统(大多数版本)仅支持2GB的文件大小,请问有什么解决方案可以解决这种情况.

After googling i found that the FAT 32 windows based system (most of the versions) only support 2GB of file size.Is there any solution for me to handle this situation.Please let me know.

预先感谢 sree

推荐答案

使用其他文件系统(例如NTFS)吗?

Use another filesystem (e.g. NTFS) ?

这篇关于使用C#.Net编写大小大于2 GB的程序文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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