Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

read text c#

var text = File.ReadAllText(file, Encoding.GetEncoding(codePage));

List of codepages : https://learn.microsoft.com/en-us/windows/win32/intl/code-page-identifiers?redirectedfrom=MSDN
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #read #text
ADD COMMENT
Topic
Name
5+4 =