static void Main(string[] args) { var j = new Journal(); j.AddEntry("I cried today"); j.AddEntry("I ate a bug"); Console.WriteLine(j); string fileName = @"..\..\sample.txt"; Persistance perSis = new Persistance(); perSis.SaveToFile(j, fileName, true); Process.Start(fileName); }
static void _Main(string[] args) { var j = new Journal(); j.AddEntry("I cried today."); j.AddEntry("I ate a bug."); WriteLine(j); var p = new Persistence(); var filename = @"C:\Users\chzo\Downloads\dpcs\journal.txt"; p.SaveToFile(j, filename); //Process.Start(filename); }
static void Main(string[] args) { var j = new Journal(); j.AddEntry("I cried today."); j.AddEntry("I ate a bug."); WriteLine(j); var p = new Persistence(); var filename = @"c:\temp\journal.txt"; p.SaveToFile(j, filename); Process.Start(filename); }
static void Main(string[] args) { var j = new Journal(); j.AddEntry("I cried today."); j.AddEntry("I ate a bug."); WriteLine(j); var filename = @"c:\temp\journal.txt"; j.Save(filename); // dosya adresini bulup çalıştırıyor. Process.Start(filename); }
static void Main(string[] args) { var j = new Journal(); j.AddEntry("I cried today."); j.AddEntry("I ate a bug."); j.AddEntry("I learned S of SOLID principle."); WriteLine(j); var t = new Persistence(); var filename = @"c:\temp\journal.txt"; t.Save(filename, j, overwrite: true); // dosya adresini bulup çalıştırıyor. Process.Start(filename); }
static void Main(string[] args) { var j = new Journal(); j.AddEntry("I wrote an API to fetch Documents."); j.AddEntry("I need to finish API integration by tomorrow."); WriteLine(j); var p = new Persistence(); var filename = @"C:\Users\Abhishek kandi\Desktop\journal.txt"; p.SaveToFile(j, filename); Process.Start(filename); ReadLine(); }
static void Main(string[] args) { var j = new Journal(); j.AddEntry("I cried today."); j.AddEntry("I ate a bug."); WriteLine(j); var p = new PersistenceManager(); var filename = @"c:\temp\journal.txt"; p.SaveToFile(j, filename); var psi = new ProcessStartInfo(); psi.FileName = filename; psi.UseShellExecute = true; Process.Start(psi); }