UTF8BOM

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

UTF8BOM

Description: the constant indicates the encoding type for the file

Syntax: UTF8BOM = "UTF-8 BOM"


Example:

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

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

Created with the Personal Edition of HelpNDoc: Write eBooks for the Kindle