UTF8

English version ›› HatFramework ›› Class: Tester ›› Constants ››
Parent Previous Next

UTF8

Description: the constant indicates the encoding type for the file

Syntax: UTF8 = "UTF-8"


Example:

string text = await tester.FileReadAsync(Tester.UTF8, "C:\\Hat\\file.txt");

await tester.FileWriteAsync(text, Tester.UTF8, "C:\\Hat\\file_copy.txt");

Created with the Personal Edition of HelpNDoc: Generate EPub eBooks with ease