Ввод текста из файла: проблемы с кодировкой - C#
Формулировка задачи:
Написал программу которая должна выводить на консоль текст из файла,русский не выводит,помогите.Спасибо
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
StreamReader intxt = new StreamReader("d:\\int.txt");
Console.WriteLine("Ваш текст:");
Console.Write(intxt.ReadToEnd());
intxt.Close();
Console.ReadKey();
}
}
}Решение задачи: «Ввод текста из файла: проблемы с кодировкой»
textual
Листинг программы
static void Main(string[] args)
{
StreamReader intxt = new StreamReader("d:\\input.txt",Encoding.Default);
Console.WriteLine("Ваш текст:");
Console.Write(intxt.ReadToEnd());
intxt.Close();
Console.ReadKey();
}