Small fix (was Re: [ENH][Unix][VM][2.8][2.9alpha?] stream-based translation)

Rob Withers slosher2 at home.com
Fri Jul 28 09:01:59 UTC 2000


Stephan,

Sorry it has taken me so long to post.  I've been hacking!

Stephan Rudlof wrote:
> Rob Withers wrote:
> >
> > Hi.  There was a problem with the automatic overwriting of a file when
> > using FileDirectory>>#fileNamed:.  It turns out that when you have an
> > *existing* file, you will write from the beginning, but it doesn't
> > eliminate the other contents.  The result is that when you write less
> > than the previous contents then close it, the file hasn't been
> > truncated.
> 
> What about using #newFileNamed?

This puts up a question dialog, asking if you want to overwrite the
file.  Since there are many files being written, I wanted to ask once,
then write all of the files.


Rob





More information about the Squeak-dev mailing list