Help with loading files and access write

Stephane Ducasse squeak-dev at lists.squeakfoundation.org
Mon Sep 9 06:53:30 UTC 2002


Silly me ;)
Thanks. I should admit that oldFileNamed: was a really bad name. I=20
tried once by accident and it worked
so I never went further.

On dimanche, septembre 8, 2002, at 07:08  PM, Andreas Raab wrote:

>> (FileStream oldFileNamed: 'MW-32a-4599.3.cs') fileIntoNewChangeSet.
>> I got an error when the file is readonly when the file is read write
>> everything works well.
>>
>> Is there a way not to get this problem?
>
> Use FileStream>>readOnlyFileNamed: instead. Using #oldFileNamed:=20
> implies
> that you wish to be able to read *and* write that file which of course
> doesn't work. [Random note: It seems most people never think about =
this
> which is really a problem - I've run into all sorts of problems when
> dealing with read-only files from Squeak for absolutely no good=20
> reason].
>
> Cheers,
>   - Andreas
>
>
>
Dr. St=E9phane DUCASSE (ducasse at iam.unibe.ch)=20
http://www.iam.unibe.ch/~ducasse/
  "if you knew today was your last day on earth, what would you do
  different? ... especially if, by doing something different, today
  might not be your last day on earth" Calvin&Hobbes





More information about the Squeak-dev mailing list