Beispiel #1
0
        public void Write(string content)
        {
            FileHandlerDB FhDB = new FileHandlerDB();

            try
            {
                FhDB.AddContent(filename, content);
            }
            catch
            {
                FileHandler Fh = new FileHandler(filename);
                Fh.WriteFile(filename, content);
            }
        }
Beispiel #2
0
        public string Read()
        {
            FileHandlerDB FhDB = new FileHandlerDB();
            string        result;

            try
            {
                result = FhDB.GetContent(filename);
            }
            catch
            {
                FileHandler Fh = new FileHandler(filename);
                result = Fh.ReadFile();
            }
            return(result);
        }