System.IO.File.Create C# (CSharp) Méthode

Create() public static méthode

public static Create ( string path ) : System.IO.FileStream
path string
Résultat System.IO.FileStream
        public static System.IO.FileStream Create(string path) { throw null; }
        public static System.IO.FileStream Create(string path, int bufferSize) { throw null; }

Same methods

File::Create ( String path, int bufferSize ) : FileStream
File::Create ( String path, int bufferSize, FileOptions options ) : FileStream
File::Create ( string path ) : FileStream
File::Create ( string path, int bufferSize ) : System.IO.FileStream
File::Create ( string path, int bufferSize, System options ) : System.IO.FileStream

Usage Example

Exemple #1
0
 public async Task CreateFileInternalAsync(
     string fullFilePath, byte[] buffer, int offset, int count,
     CancellationToken cancellationToken = default)
 {
     await using FileStream stream = IOFile.Create(fullFilePath);
     await stream.WriteAsync(buffer, offset, count, cancellationToken).ConfigureAwait(false);
 }
All Usage Examples Of System.IO.File::Create