Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j0rgeserran0/fileutilities
Utilities written in C# to split and merge large files
https://github.com/j0rgeserran0/fileutilities
Last synced: 23 days ago
JSON representation
Utilities written in C# to split and merge large files
- Host: GitHub
- URL: https://github.com/j0rgeserran0/fileutilities
- Owner: J0rgeSerran0
- Created: 2014-06-24T08:07:04.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-06-02T18:00:34.000Z (over 3 years ago)
- Last Synced: 2024-02-01T09:00:35.939Z (about 1 year ago)
- Language: C#
- Size: 58.6 KB
- Stars: 5
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FileUtilities
Utilities written in C# to split and merge large files
## **Note: There is a new version of this code for .NET 5 [(FileCutter)](https://github.com/J0rgeSerran0/FileCutter), with some improvements**
## Description
This sample show you how split a large file into different files, and how merge all those parts into a single file.
For it, you can choice split a file by size or by number of files.## Class Diagram of the project
## Sample use
* The next C# sample, split a large file into files of 4 Megabytes:
```csharp
var fileUtilities = new FileUtilities.Discompose();
fileUtilities.SplitFileBySizeOfFiles(@"C:\Temp\BigFile.txt", 4, FileUtilities.SizeType.MBytes);
```
* The next C# sample, split a large file into 5 files:
```csharp
var fileUtilities = new FileUtilities.Discompose();
fileUtilities.SplitFileByNumberOfFiles(@"C:\Temp\BigFile.txt", 5);
```
* The next C# sample, merge the split files into a file:
```csharp
var fileUtilities = new FileUtilities.Compose();
fileUtilities.MergeFiles(@"C:\Temp");
```