FileInfoExtension Class

Extension methods for the FileInfo class.

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
C#
public static class FileInfoExtension
Inheritance
Object    FileInfoExtension

Methods

IsUtf8Tests whether the portion of the file specified by fileInfo that extends at least count characters from the beginning of the file is UTF-8 text. The method includes the byte order mark (BOM) in the check.
IsUtf8ValidTests whether the portion of the file specified by fileInfo that extends at least count characters from the beginning of the file represents valid UTF-8.

See Also