BetterExplorer.SaveTabs.LoadTabList C# (CSharp) Method

LoadTabList() public static method

Loads a list of tabs from a file
public static LoadTabList ( string file ) : List
file string The full name of the file you want to load from
return List
		public static List<string> LoadTabList(string file) {
			using (var sr = new StreamReader(file)) {
				return CreateFromString(sr.ReadLine());
			}
		}

Usage Example

Beispiel #1
0
        public void SetUpTooltip(string tabs)
        {
            lst = SaveTabs.LoadTabList($"{Directory}{Location}.txt");
            string de = $"{tabs}: {lst.Count.ToString()}\n\r" + string.Join("\r\n", lst.ToArray());

            this.ToolTip = de.Remove(de.Length - 2);
        }