UtilTextFilesGetEncoding(FileInfo) Method
Determines the Encoding of the source textfile.
Namespace: DevCase.Core.DataProcessing.TextFilesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Encoding GetEncoding(
FileInfo sourceFile
)
Public Shared Function GetEncoding (
sourceFile As FileInfo
) As Encoding
Dim sourceFile As FileInfo
Dim returnValue As Encoding
returnValue = UtilTextFiles.GetEncoding(sourceFile)
public:
static Encoding^ GetEncoding(
FileInfo^ sourceFile
)
static member GetEncoding :
sourceFile : FileInfo -> Encoding
No code example is currently available or this language may not be supported.
- sourceFile FileInfo
-
The source textfile.
Encoding
If the encoding can be detected, the return value is the detected
Encoding,
if the encoding can't be detected, the return value is
Default.
This is a code example.
No code example is currently available or this language may not be supported.
Dim encoding As Encoding = GetEncoding(New FileInfo("C:\file.txt"))
Dim encodingName As String = GetEncoding(New FileInfo("C:\file.txt")).WebName
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.