public StringList(string file, int length, CharList charlist) { List <byte[]> splited = SplitByNull(File.ReadAllBytes(file)); foreach (var a in splited) { list.Add(new Tuple <string, int>(charlist.Decode(a.Where(x => x != 0).ToArray()), a.Length)); } }
public string GetText(CharList CharList) { if (Type == "System") { if (Array[0] == 0x0A) { return("\n"); } else { return(GetSystem()); } } else { return(CharList.Decode(Array)); } }