Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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