Hmmmm, I smell a bug. In File.oz we have:
% Read complete file S into character list L
proc {ReadList S ?L}
F={New Open.file init(name:S)}
in
{F read(list:L size:all)}
{F close}
end
If you change name:S to url:S on the third line then it really does
access both URLs and files. You should change the other occurences of
{New Open.file init(name:S)} too.
k
Paolo Veronelli writes:
> In the CTM book it's written I can access URLs in the same way as files.
>
> I tried
> declare [File]={Module.link ['File.ozf']}
> declare F={File.readList 'ftp://www.tinvention.net/test.oz'}
>
> with the result
>
> %** Operating system error
> %**
> %** System call: open
> %** Error number: 2
> %** Description: No such file or directory
> %** In statement: {<P/4 OS.open> 'ftp://www.tinvention.net/test.oz'
> ['O_RDONLY'] ['S_IWUSR' 'S_IRUSR' 'S_IRGRP' 'S_IROTH'] _}
>
> Looks like it's not going on the net.
>
> Thanks for help
> Paolino
>
>
>
>
>
> ___________________________________
> Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
> http://mail.yahoo.it
>
>
> _________________________________________________________________________________
> mozart-users mailing list
> [email protected]
> http://www.mozart-oz.org/mailman/listinfo/mozart-users
>
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users