Premium

The WinForms Notepad Project: File Efficiency and Save Prompts (Premium)

Avatar
18

As you may recall, in part 3 of this series, called The WinForms Notepad Project: Icons and Open Files (Premium), I used a StreamReader object to read the contents of a text file; the contents of that file were then loaded into the TextBox that forms the foundation of our Notepad clone. But a reader with the clever user name of CleverUsername suggested I try File.ReadAllText instead.

Well, he is clever.

Gain unlimited access to Premium articles.

With technology shaping our everyday lives, how could we not dig deeper?

Thurrott Premium delivers an honest and thorough perspective about the technologies we use and rely on everyday. Discover deeper content as a Premium member.

Become a Premium Member Create a Free Account