Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!agate!garnet.berkeley.edu!bmyers From: bmyers@garnet.berkeley.edu (Brian Myers) Newsgroups: comp.sys.mac.programmer Subject: How to truncate file from THINK Pascal? Message-ID: <1991Jun26.061357.5187@agate.berkeley.edu> Date: 26 Jun 91 06:13:57 GMT Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: University of California, Berkeley Lines: 14 I'm trying to delete records from a structured file without having to copy all the undeleted records to a separate file. To shorten I file, I suppose I need the SetEof toolbox routine (or is it a trap? that command, anyway.) But SetEof expects a "file reference number." I assume that number is stored somewhere in my Pascal file variable, probably in some kind of record structure, but I can't find that structure documented. Can someone either tell me how to do truncate files, or where to find docs for the contents of a file variable? Thanks. Brian Myers bmyers@garnet.ucb.edu -- --------------------------------------------------------------------------- Brian Myers bmyers@garnet.berkeley.edu