// String array public static bool DataINIReadWrite(this IniData _Data, string _Section, string _Key, ref List <string> _Value, bool _Write = true, string _Separator = ",") { IniData data = _Data; bool status = false; string value = HEVText.ToString(_Value, _Separator); string dataValue = data[_Section][_Key]; if (!HEVText.Validate(dataValue)) { if (value == "" && dataValue == "") { status = true; } else { if (_Write) { data[_Section][_Key] = value; } status = false; } } else { value = dataValue; status = true; } _Data = data; _Value = HEVText.ToStringList(value, _Separator, true); return(status); }
public static (string, bool) FileTextReadString(string _URL) { string[] fileLines = null; bool status = false; (fileLines, status) = FileTextReadStringArray(_URL); return(HEVText.ToString(fileLines), true); }