コード例 #1
0
 public void MySaveToDisk()
 {
     // WriteAllText
     File.WriteAllText("mammal.txt", this.GetType().ToString());
     Console.WriteLine(this.GetType().ToString());
     Console.WriteLine("Data written");
     Apuluokka.InsertWideLineSepatator();
 }
コード例 #2
0
        public string MyReadFromDisk()
        {
            // Read in every line in specified file.
            // ... This will store all lines in an array in memory.
            string[] lines = File.ReadAllLines("mammal.txt");

            Console.WriteLine(lines[0]);

            Console.WriteLine("Data read");
            Apuluokka.InsertWideLineSepatator();

            return(lines[0]);
        }