Skip to content

Instantly share code, notes, and snippets.

private int Split(string xcpFile, uint[] splitAt)
{
if (!File.Exists(xcpFile)) return 1;
using (FileStream rfs = new FileStream(xcpFile, FileMode.Open, FileAccess.Read, FileShare.Read))
{
byte[] buffer = new byte[4096];
long LeftToRead = 0;
int loop = 0;