Hello everyone. I am new in c#
Would like me to try this code from the link below in my app.
Thanks to GitHub, this Class
automatically detects the code page from the text file.
But I don't know how to call this class in my application,
I don't know how to use this class...
For example, if my file is located in the path:
C:\TestFolder\Test.txt, how can I detect code page of this file Test.txt.
He is asking for your help if that is possible, if not then I apologize in advance.Thanks in advance.
Link of GitHub class:
https://gist.github.com/TaoK/945127
What I have tried:
Something like
private void Button1_Click(object sender, EventArgs e)
{
string path = @"C:\TestFolder\Test.txt";
TextFileEncodingDetector.DetectTextFileEncoding(path);
}