A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/dotnet/api/system.io.file below:

File Class (System.IO) | Microsoft Learn

AppendAllBytes(String, Byte[])

Appends the specified byte array to the end of the file at the given path.

If the file doesn't exist, this method creates a new file.

AppendAllBytes(String, ReadOnlySpan<Byte>)

Appends the specified byte array to the end of the file at the given path.

If the file doesn't exist, this method creates a new file.

AppendAllBytesAsync(String, Byte[], CancellationToken)

Asynchronously appends the specified byte array to the end of the file at the given path.

If the file doesn't exist, this method creates a new file. If the operation is canceled, the task will return in a canceled state.

AppendAllBytesAsync(String, ReadOnlyMemory<Byte>, CancellationToken)

Asynchronously appends the specified byte array to the end of the file at the given path.

If the file doesn't exist, this method creates a new file. If the operation is canceled, the task will return in a canceled state.

AppendAllLines(String, IEnumerable<String>, Encoding)

Appends lines to a file by using a specified encoding, and then closes the file. If the specified file does not exist, this method creates a file, writes the specified lines to the file, and then closes the file.

AppendAllLines(String, IEnumerable<String>)

Appends lines to a file, and then closes the file. If the specified file does not exist, this method creates a file, writes the specified lines to the file, and then closes the file.

AppendAllLinesAsync(String, IEnumerable<String>, CancellationToken)

Asynchronously appends lines to a file, and then closes the file. If the specified file does not exist, this method creates a file, writes the specified lines to the file, and then closes the file.

AppendAllLinesAsync(String, IEnumerable<String>, Encoding, CancellationToken)

Asynchronously appends lines to a file by using a specified encoding, and then closes the file. If the specified file does not exist, this method creates a file, writes the specified lines to the file, and then closes the file.

AppendAllText(String, ReadOnlySpan<Char>, Encoding)

Appends the specified string to the file, creating the file if it does not already exist.

AppendAllText(String, ReadOnlySpan<Char>)

Appends the specified string to the file, creating the file if it does not already exist.

AppendAllText(String, String, Encoding)

Appends the specified string to the file using the specified encoding, creating the file if it does not already exist.

AppendAllText(String, String)

Opens a file, appends the specified string to the file, and then closes the file. If the file does not exist, this method creates a file, writes the specified string to the file, then closes the file.

AppendAllTextAsync(String, ReadOnlyMemory<Char>, CancellationToken)

Asynchronously opens a file or creates a file if it does not already exist, appends the specified string to the file, and then closes the file.

AppendAllTextAsync(String, ReadOnlyMemory<Char>, Encoding, CancellationToken)

Asynchronously opens a file or creates the file if it does not already exist, appends the specified string to the file using the specified encoding, and then closes the file.

AppendAllTextAsync(String, String, CancellationToken)

Asynchronously opens a file or creates a file if it does not already exist, appends the specified string to the file, and then closes the file.

AppendAllTextAsync(String, String, Encoding, CancellationToken)

Asynchronously opens a file or creates the file if it does not already exist, appends the specified string to the file using the specified encoding, and then closes the file.

AppendText(String)

Creates a StreamWriter that appends UTF-8 encoded text to an existing file, or to a new file if the specified file does not exist.

Copy(String, String, Boolean)

Copies an existing file to a new file. Overwriting a file of the same name is allowed.

Copy(String, String)

Copies an existing file to a new file. Overwriting a file of the same name is not allowed.

Create(String, Int32, FileOptions, FileSecurity)

Creates or overwrites a file in the specified path, specifying a buffer size, options that describe how to create or overwrite the file, and a value that determines the access control and audit security for the file.

Create(String, Int32, FileOptions)

Creates or overwrites a file in the specified path, specifying a buffer size and options that describe how to create or overwrite the file.

Create(String, Int32)

Creates, or truncates and overwrites, a file in the specified path, specifying a buffer size.

Create(String)

Creates, or truncates and overwrites, a file in the specified path.

CreateSymbolicLink(String, String)

Creates a file symbolic link identified by path that points to pathToTarget.

CreateText(String)

Creates or opens a file for writing UTF-8 encoded text. If the file already exists, its contents are replaced.

Decrypt(String)

Decrypts a file that was encrypted by the current account using the Encrypt(String) method.

Delete(String)

Deletes the specified file.

Encrypt(String)

Encrypts a file so that only the account used to encrypt the file can decrypt it.

Exists(String)

Determines whether the specified file exists.

GetAccessControl(String, AccessControlSections)

Gets a FileSecurity object that encapsulates the specified type of access control list (ACL) entries for a particular file.

GetAccessControl(String)

Gets a FileSecurity object that encapsulates the access control list (ACL) entries for a specified file.

GetAttributes(SafeFileHandle)

Gets the specified FileAttributes of the file or directory associated with fileHandle.

GetAttributes(String)

Gets the FileAttributes of the file on the path.

GetCreationTime(SafeFileHandle)

Returns the creation time of the specified file or directory.

GetCreationTime(String)

Returns the creation date and time of the specified file or directory.

GetCreationTimeUtc(SafeFileHandle)

Returns the creation date and time, in Coordinated Universal Time (UTC), of the specified file or directory.

GetCreationTimeUtc(String)

Returns the creation date and time, in Coordinated Universal Time (UTC), of the specified file or directory.

GetLastAccessTime(SafeFileHandle)

Returns the last access date and time of the specified file or directory.

GetLastAccessTime(String)

Returns the date and time the specified file or directory was last accessed.

GetLastAccessTimeUtc(SafeFileHandle)

Returns the last access date and time, in Coordinated Universal Time (UTC), of the specified file or directory.

GetLastAccessTimeUtc(String)

Returns the date and time, in Coordinated Universal Time (UTC), that the specified file or directory was last accessed.

GetLastWriteTime(SafeFileHandle)

Returns the last write date and time of the specified file or directory.

GetLastWriteTime(String)

Returns the date and time the specified file or directory was last written to.

GetLastWriteTimeUtc(SafeFileHandle)

Returns the last write date and time, in Coordinated Universal Time (UTC), of the specified file or directory.

GetLastWriteTimeUtc(String)

Returns the date and time, in Coordinated Universal Time (UTC), that the specified file or directory was last written to.

GetUnixFileMode(SafeFileHandle)

Gets the UnixFileMode of the specified file handle.

GetUnixFileMode(String)

Gets the UnixFileMode of the file on the path.

Move(String, String, Boolean)

Moves a specified file to a new location, providing the options to specify a new file name and to replace the destination file if it already exists.

Move(String, String)

Moves a specified file to a new location, providing the option to specify a new file name.

Open(String, FileMode, FileAccess, FileShare)

Opens a FileStream on the specified path, having the specified mode with read, write, or read/write access and the specified sharing option.

Open(String, FileMode, FileAccess)

Opens a FileStream on the specified path, with the specified mode and access with no sharing.

Open(String, FileMode)

Opens a FileStream on the specified path with read/write access with no sharing.

Open(String, FileStreamOptions)

Initializes a new instance of the FileStream class with the specified path, creation mode, read/write and sharing permission, the access other FileStreams can have to the same file, the buffer size, additional file options and the allocation size.

OpenHandle(String, FileMode, FileAccess, FileShare, FileOptions, Int64)

Initializes a new instance of the SafeFileHandle class with the specified path, creation mode, read/write and sharing permission, the access other SafeFileHandles can have to the same file, additional file options and the allocation size.

OpenRead(String)

Opens an existing file for reading.

OpenText(String)

Opens an existing UTF-8 encoded text file for reading.

OpenWrite(String)

Opens an existing file or creates a new file for writing.

ReadAllBytes(String)

Opens a binary file, reads the contents of the file into a byte array, and then closes the file.

ReadAllBytesAsync(String, CancellationToken)

Asynchronously opens a binary file, reads the contents of the file into a byte array, and then closes the file.

ReadAllLines(String, Encoding)

Opens a file, reads all lines of the file with the specified encoding, and then closes the file.

ReadAllLines(String)

Opens a text file, reads all lines of the file, and then closes the file.

ReadAllLinesAsync(String, CancellationToken)

Asynchronously opens a text file, reads all lines of the file, and then closes the file.

ReadAllLinesAsync(String, Encoding, CancellationToken)

Asynchronously opens a text file, reads all lines of the file with the specified encoding, and then closes the file.

ReadAllText(String, Encoding)

Opens a file, reads all text in the file with the specified encoding, and then closes the file.

ReadAllText(String)

Opens a text file, reads all the text in the file, and then closes the file.

ReadAllTextAsync(String, CancellationToken)

Asynchronously opens a text file, reads all the text in the file, and then closes the file.

ReadAllTextAsync(String, Encoding, CancellationToken)

Asynchronously opens a text file, reads all text in the file with the specified encoding, and then closes the file.

ReadLines(String, Encoding)

Read the lines of a file that has a specified encoding.

ReadLines(String)

Reads the lines of a file.

ReadLinesAsync(String, CancellationToken)

Asynchronously reads the lines of a file.

ReadLinesAsync(String, Encoding, CancellationToken)

Asynchronously reads the lines of a file that has a specified encoding.

Replace(String, String, String, Boolean)

Replaces the contents of a specified file with the contents of another file, deleting the original file and creating a backup of the replaced file, and optionally ignores merge errors.

Replace(String, String, String)

Replaces the contents of a specified file with the contents of another file, deleting the original file and creating a backup of the replaced file.

ResolveLinkTarget(String, Boolean)

Gets the target of the specified file link.

SetAccessControl(String, FileSecurity)

Applies access control list (ACL) entries described by a FileSecurity object to the specified file.

SetAttributes(SafeFileHandle, FileAttributes)

Sets the specified FileAttributes of the file or directory associated with fileHandle.

SetAttributes(String, FileAttributes)

Sets the specified FileAttributes of the file on the specified path.

SetCreationTime(SafeFileHandle, DateTime)

Sets the date and time the file or directory was created.

SetCreationTime(String, DateTime)

Sets the date and time the file was created.

SetCreationTimeUtc(SafeFileHandle, DateTime)

Sets the date and time, in Coordinated Universal Time (UTC), that the file or directory was created.

SetCreationTimeUtc(String, DateTime)

Sets the date and time, in Coordinated Universal Time (UTC), that the file was created.

SetLastAccessTime(SafeFileHandle, DateTime)

Sets the date and time the specified file or directory was last accessed.

SetLastAccessTime(String, DateTime)

Sets the date and time the specified file was last accessed.

SetLastAccessTimeUtc(SafeFileHandle, DateTime)

Sets the date and time, in Coordinated Universal Time (UTC), that the specified file or directory was last accessed.

SetLastAccessTimeUtc(String, DateTime)

Sets the date and time, in Coordinated Universal Time (UTC), that the specified file was last accessed.

SetLastWriteTime(SafeFileHandle, DateTime)

Sets the date and time that the specified file or directory was last written to.

SetLastWriteTime(String, DateTime)

Sets the date and time that the specified file was last written to.

SetLastWriteTimeUtc(SafeFileHandle, DateTime)

Sets the date and time, in Coordinated Universal Time (UTC), that the specified file or directory was last written to.

SetLastWriteTimeUtc(String, DateTime)

Sets the date and time, in Coordinated Universal Time (UTC), that the specified file was last written to.

SetUnixFileMode(SafeFileHandle, UnixFileMode)

Sets the specified UnixFileMode of the specified file handle.

SetUnixFileMode(String, UnixFileMode)

Sets the specified UnixFileMode of the file on the specified path.

WriteAllBytes(String, Byte[])

Creates a new file, writes the specified byte array to the file, and then closes the file. If the target file already exists, it is truncated and overwritten.

WriteAllBytes(String, ReadOnlySpan<Byte>)

Creates a new file, writes the specified byte array to the file, and then closes the file. If the target file already exists, it is truncated and overwritten.

WriteAllBytesAsync(String, Byte[], CancellationToken)

Asynchronously creates a new file, writes the specified byte array to the file, and then closes the file. If the target file already exists, it is truncated and overwritten.

WriteAllBytesAsync(String, ReadOnlyMemory<Byte>, CancellationToken)

Asynchronously creates a new file, writes the specified byte array to the file, and then closes the file. If the target file already exists, it is truncated and overwritten.

WriteAllLines(String, IEnumerable<String>, Encoding)

Creates a new file by using the specified encoding, writes a collection of strings to the file, and then closes the file.

WriteAllLines(String, IEnumerable<String>)

Creates a new file, writes a collection of strings to the file, and then closes the file.

WriteAllLines(String, String[], Encoding)

Creates a new file, writes the specified string array to the file by using the specified encoding, and then closes the file.

WriteAllLines(String, String[])

Creates a new file, write the specified string array to the file, and then closes the file.

WriteAllLinesAsync(String, IEnumerable<String>, CancellationToken)

Asynchronously creates a new file, writes the specified lines to the file, and then closes the file.

WriteAllLinesAsync(String, IEnumerable<String>, Encoding, CancellationToken)

Asynchronously creates a new file, write the specified lines to the file by using the specified encoding, and then closes the file.

WriteAllText(String, ReadOnlySpan<Char>, Encoding)

Creates a new file, writes the specified string to the file using the specified encoding, and then closes the file.

If the target file already exists, it is truncated and overwritten.

WriteAllText(String, ReadOnlySpan<Char>)

Creates a new file, writes the specified string to the file, and then closes the file.

If the target file already exists, it is truncated and overwritten.

WriteAllText(String, String, Encoding)

Creates a new file, writes the specified string to the file using the specified encoding, and then closes the file. If the target file already exists, it is truncated and overwritten.

WriteAllText(String, String)

Creates a new file, writes the specified string to the file, and then closes the file. If the target file already exists, it is truncated and overwritten.

WriteAllTextAsync(String, ReadOnlyMemory<Char>, CancellationToken)

Asynchronously creates a new file, writes the specified string to the file, and then closes the file.

If the target file already exists, it is truncated and overwritten.

WriteAllTextAsync(String, ReadOnlyMemory<Char>, Encoding, CancellationToken)

Asynchronously creates a new file, writes the specified string to the file using the specified encoding, and then closes the file.

If the target file already exists, it is truncated and overwritten.

WriteAllTextAsync(String, String, CancellationToken)

Asynchronously creates a new file, writes the specified string to the file, and then closes the file. If the target file already exists, it is truncated and overwritten.

WriteAllTextAsync(String, String, Encoding, CancellationToken)

Asynchronously creates a new file, writes the specified string to the file using the specified encoding, and then closes the file. If the target file already exists, it is truncated and overwritten.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4