如何使用VB.NET 2003将大文件分割成更小的文件? [英] How to split a large file into smaller files using VB.NET 2003?

查看:257
本文介绍了如何使用VB.NET 2003将大文件分割成更小的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个大文件(2.7GB)。我需要将它分成到更小的文件。如何使用VB.NET 2003将大文件分割成更小的文件?不能使用LINQ,并且操作环境上的资源(cpu和内存)是非常有限的(这是一个共享的宿主环境)。 解决方案

使用流从文件中读取数据,然后写入部分文件 - 每当达到您想要的较小文件的大小时开始一个新文件。


I have a large file (2.7GB). I need to split it into smaller files. How to split a large file into smaller files using VB.NET 2003? Cannot use LINQ and the resources (cpu and memory) on operating environment are very limited (it is a shared hosting environment).

解决方案

Read from the file with a stream, and write to the partial file - start a new file whenever you have reached the size you want your smaller files to be.

这篇关于如何使用VB.NET 2003将大文件分割成更小的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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