Exemple #1
0
        public ReplHistory()
        {
            cursor   = 0;
            lines    = new List <string>();
            histfile = null;

            var dir = Runtime.CreateKiezellispDataFolder();

            histfile = PathExtensions.Combine(dir, "kiezellisp.history");

            if (File.Exists(histfile))
            {
                foreach (var ln in File.ReadAllLines(histfile))
                {
                    lines.Add(ln.Replace("<CRLF>", "\n"));
                }
                cursor = lines.Count;
            }
        }