2017-05-11 21 views

回答

0

它應該是這樣的:

// Or the encoding of the file 
var encoding = Encoding.GetEncoding("iso-8859-1"); 

// where somefile.txt is your file 
string text = File.ReadAllText("somefile.txt", encoding); 

// the splitted parts. FS is the \x1C hex character. 
string[] parts = text.Split('\x1C');