string curFileMenu = @"C:\Accounting\Accounting\Accounting\TextFileMenu.txt";
if (File.Exists(curFileMenu))
{
string[] menunames = System.IO.File.ReadAllLines(curFileMenu);
foreach (string menuname in menunames)
{
lnLenght = menuname.Length;
lnLenghtLast = menuname.IndexOf("::") + "::".Length;
lnLenghtFirst = menuname.LastIndexOf("::");
}
}