Ejemplo n.º 1
0
        public static string CurrentVersion()
        {
            int           lineCounter = 0;
            string        bufferText  = "";
            DirectoryInfo dirLog      = new DirectoryInfo(logPath);

            FileInfo lastLog = dirLog.GetFiles().OrderByDescending <FileInfo, DateTime>(f => f.LastWriteTime).First();


            using (StreamReader file = new StreamReader(logPath + "\\" + lastLog.Name))
            {
                while ((textFileLine = file.ReadLine()) != null)
                {
                    if (lineCounter == 8)
                    {
                        bufferText += textFileLine;
                    }
                    if (lineCounter == 9)
                    {
                        bufferText += textFileLine;
                    }
                    lineCounter++;
                }

                bufferText = TextFactory.CleanString(bufferText, "serverVersion:  ", "Pre", 0);
            }
            return(bufferText);
        }
Ejemplo n.º 2
0
        public static string ChangeLog()
        {
            string pageSource = TextFactory.GetStringRequest(new Uri("http://bon.x10host.com/Project%20Altis/ttpaChangeLog.txt")).ExcessRemover(stringDelimeters);

            return(pageSource);
        }