changeset 56503 | 9e23fafe4037 |
parent 56501 | 5fda9e5c5874 |
child 62248 | dca0bac351b2 |
56502:db2836f65d42 | 56503:9e23fafe4037 |
---|---|
27 catch { case ERROR(_) => false } |
27 catch { case ERROR(_) => false } |
28 |
28 |
29 def read(name: String): String = |
29 def read(name: String): String = |
30 { |
30 { |
31 val stream = Url(name).openStream |
31 val stream = Url(name).openStream |
32 try { File.read_stream(stream) } // FIXME proper text encoding!? |
32 try { File.read_stream(stream) } |
33 finally { stream.close } |
33 finally { stream.close } |
34 } |
34 } |
35 } |
35 } |
36 |
36 |