Initial commit
This commit is contained in:
19
12.2-FileWriter/FileWriter.cs
Normal file
19
12.2-FileWriter/FileWriter.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
class FileWriter {
|
||||
public static void Main() {
|
||||
StreamWriter writer = new StreamWriter("../../namn.txt");
|
||||
|
||||
writer.WriteLine("Anna");
|
||||
writer.WriteLine("Bertil");
|
||||
writer.WriteLine("Catrin");
|
||||
writer.WriteLine("David");
|
||||
writer.WriteLine("Estelle");
|
||||
writer.WriteLine("Fredrik");
|
||||
|
||||
writer.Close();
|
||||
|
||||
Console.WriteLine("Allt klart....");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user