Comment in FileStream

Andres Valloud avalloud at exobox.com
Fri Jul 7 02:12:38 UTC 2000


Hi.

I just read a comment in class FileStream saying that in DOS files can't
be shortened. But even with Pascal you could send truncate(toFiles)...
and such files didn't get copied or anything close to that. The
directory entry was adjusted, and the FAT chain was also halved. I would
really have to check Pascal's RTL to see how that was done, but
unfortunately I don't have that with me right now. Yet, between Pascal's
file library being a mirror of the corresponding interrupt calls and my
ability to use truncate(toHalveFiles), I'm wondering why is that comment
there...

Andres.





More information about the Squeak-dev mailing list