File class error mesage

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

File class error mesage

Costas Menico-2
When I try the following with Dolphin 3.0 I get a doesNotUnderstand
isReadable  error:

fStread := FileStream on: 'c:\autoexec.bat'.

Is this a bug in the class?

Costas Menico


Reply | Threaded
Open this post in threaded view
|

Re: File class error mesage

Ian Bartholomew
<[hidden email]> wrote in message
news:[hidden email]...
> When I try the following with Dolphin 3.0 I get a doesNotUnderstand
> isReadable  error:
>
> fStread := FileStream on: 'c:\autoexec.bat'.
>
> Is this a bug in the class?

No. The argument should be an instance of the File class and not a String.

You probably want

fStread := FileStream read: 'c:\autoexec.bat'.

Ian