RosettaCodeData/Task/HTTP/Oz/http-1.oz

11 lines
211 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
declare
fun {GetPage Url}
F = {New Open.file init(url:Url)}
Contents = {F read(list:$ size:all)}
in
{F close}
Contents
end
in
{System.showInfo {GetPage "http://www.rosettacode.org"}}