如何使用 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.