Last active
July 6, 2021 10:37
-
-
Save Mahno74/baf5a796c42cea1207b7103a5eacd3b3 to your computer and use it in GitHub Desktop.
Чтение файла TXT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.IO.StreamReader Reader; | |
Создание потока среамреадер для чтения из файла | |
Reader = new System.IO.StreamReader(openFileDialog1.FileName, System.Text.Encoding.GetEncoding(1251)); | |
textBox1.Text = Reader.ReadToEnd(); Reader.Close(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment