"C샵 WriteAllText()"의 두 판 사이의 차이

(새 문서: ==개요== <syntaxhighlight lang='csharp' run> using System; class Program { static void Main() { System.IO.File.WriteAllText(@"test.txt", "Hello World"); } } </synta...)
 
6번째 줄: 6번째 줄:
     static void Main() {
     static void Main() {
         System.IO.File.WriteAllText(@"test.txt", "Hello World");
         System.IO.File.WriteAllText(@"test.txt", "Hello World");
        Console.WriteLine( System.IO.File.ReadAllText(@"test.txt") );
     }
     }
}
}

2021년 8월 28일 (토) 15:14 판

1 개요

using System;
class Program {
    static void Main() {
        System.IO.File.WriteAllText(@"test.txt", "Hello World");
        Console.WriteLine( System.IO.File.ReadAllText(@"test.txt") );
    }
}

2 같이 보기

3 참고

[[분류: ]] [[분류: ]]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}