CSharpUtils.FileUtils.CreateAndAppendStream C# (CSharp) Method

CreateAndAppendStream() public static method

public static CreateAndAppendStream ( string Path, Stream InputStream ) : void
Path string
InputStream Stream
return void
		public static void CreateAndAppendStream(string Path, Stream InputStream)
		{
			if (!_AppendStreams.Contains(Path))
			{
				try { File.Delete(Path); } catch { }
				_AppendStreams.Add(Path);
			}

			using (var OutputStream = File.OpenWrite(Path))
			{
				OutputStream.Position = OutputStream.Length;
				InputStream.Slice().CopyToFast(OutputStream);
			}
			//throw new NotImplementedException();
		}
	}