Make the sample have good coding :-)

svn path=/trunk/gtk-sharp/; revision=36750
This commit is contained in:
Ben Maurer 2004-11-29 03:28:27 +00:00
parent 6eea226ab7
commit 12b8e718e1

View file

@ -15,7 +15,7 @@ class HTMLSample {
HTMLStream s = html.Begin ("text/html"); HTMLStream s = html.Begin ("text/html");
if (args.Length > 0) { if (args.Length > 0) {
StreamReader r = new StreamReader (File.OpenRead (args [0])); using (StreamReader r = File.OpenText (args [0]))
s.Write (r.ReadToEnd ()); s.Write (r.ReadToEnd ());
} else { } else {
s.Write ("<html><body>"); s.Write ("<html><body>");