OpenFileCreateScope() public method

public OpenFileCreateScope ( String FileName, Action Action ) : void
FileName String
Action Action
return void
Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="SourceFileSystem"></param>
 /// <param name="SourcePath"></param>
 /// <param name="DestFileSystem"></param>
 /// <param name="DestPath"></param>
 static public void CopyFile(FileSystem SourceFileSystem, String SourcePath, FileSystem DestFileSystem, String DestPath)
 {
     DestFileSystem.OpenFileCreateScope(DestPath, (OutStream) =>
     {
         SourceFileSystem.OpenFileReadScope(SourcePath, (InStream) =>
         {
             InStream.CopyToFast(OutStream);
         });
     });
 }
Exemplo n.º 2
0
		/// <summary>
		/// 
		/// </summary>
		/// <param name="SourceFileSystem"></param>
		/// <param name="SourcePath"></param>
		/// <param name="DestFileSystem"></param>
		/// <param name="DestPath"></param>
		static public void CopyFile(FileSystem SourceFileSystem, String SourcePath, FileSystem DestFileSystem, String DestPath)
		{
			DestFileSystem.OpenFileCreateScope(DestPath, (OutStream) =>
			{
				SourceFileSystem.OpenFileReadScope(SourcePath, (InStream) =>
				{
					InStream.CopyToFast(OutStream);
				});
			});
		}