mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 19:25:31 +00:00
Make the sample have good coding :-)
svn path=/trunk/gtk-sharp/; revision=36750
This commit is contained in:
parent
6eea226ab7
commit
12b8e718e1
|
@ -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>");
|
||||||
|
|
Loading…
Reference in a new issue