به نام خدا سلام بر برنامه نویسان عزیز 😉 در این مطلب کد باز کردن یک فایل با StreamWriter در #C را آماده کردم. انشاالله که این آموزش برای شما مفید باشد.
کد باز کردن یک فایل با StreamWriter در #C :
using System;
using System.IO;
class MainClass {
public static void Main() {
StreamWriter fstr_out;
try {
fstr_out = new StreamWriter("test.txt");
}
catch(IOException exc) {
Console.WriteLine(exc.Message + "Cannot open file.");
using System.IO;
class MainClass {
public static void Main() {
StreamWriter fstr_out;
try {
fstr_out = new StreamWriter("test.txt");
}
catch(IOException exc) {
Console.WriteLine(exc.Message + "Cannot open file.");