Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
8
Task/File-input-output/C-sharp/file-input-output-1.cs
Normal file
8
Task/File-input-output/C-sharp/file-input-output-1.cs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
using System.IO;
|
||||
|
||||
using (var reader = new StreamReader("input.txt"))
|
||||
using (var writer = new StreamWriter("output.txt"))
|
||||
{
|
||||
var text = reader.ReadToEnd();
|
||||
writer.Write(text);
|
||||
}
|
||||
4
Task/File-input-output/C-sharp/file-input-output-2.cs
Normal file
4
Task/File-input-output/C-sharp/file-input-output-2.cs
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
using System.IO;
|
||||
|
||||
var text = File.ReadAllText("input.txt");
|
||||
File.WriteAllText("output.txt", text);
|
||||
Loading…
Add table
Add a link
Reference in a new issue