C# Class NArrange.Core.FileUtilities

File utility methods.
Mostrar archivo Open project: MarcStan/NArrange

Public Methods

Method Description
GetAttribute ( FileAttributeType attributeType, FileInfo file ) : string

Gets the string representation of a file attribute.

GetEncoding ( string filename ) : Encoding

Reads a file to determine its encoding.

Method Details

GetAttribute() public static method

Gets the string representation of a file attribute.
public static GetAttribute ( FileAttributeType attributeType, FileInfo file ) : string
attributeType FileAttributeType Type of the attribute.
file System.IO.FileInfo The file to get the attribute for.
return string

GetEncoding() public static method

Reads a file to determine its encoding.
public static GetEncoding ( string filename ) : Encoding
filename string The filename.
return System.Text.Encoding