StreamReader

    File.ReadAllText와 StreamReader.ReadToEnd의 차이점

    https://stackoverflow.com/questions/3545402/any-difference-between-file-readalltext-and-using-a-streamreader-to-read-file Any difference between File.ReadAllText() and using a StreamReader to read file contents? At first I used a StreamReader to read text from a file: StreamReader reader = new StreamReader(dialog.OpenFile()); txtEditor.Text = reader.ReadToEnd(); but found out about File.ReadAllT..