[comp.lang.pascal] Sorting / Dos Routines

Adams@J (jma@gnu.ai.mit.edu) (09/28/90)

I'm desperatly seeking a couple of routines here... I don't want references to
books that I'll have to go and buy, nor software packages that I'll have to go
purchase. just some code, please.. (Not trying to be rude!) 

Anyway...

First off, I'm trying to write a routine in Turbo Pascal 5.5 that will
Allow me to change the volume name of a disk. I've tried this routine , but
TP5.5 doesn't want to set the volume attribute for me..

Var F: File;

Begin
	Assign(F,'<volumename>');
	Rewrite(F);
	SetFAttr(F,$28); { $08 for Volume, $20 for Archive -- I've tried
                           These in hordes of combinations, nothing works.}
        Close(F);
End;

Secondly, I'm wondering if anyone knows how to sort extremely large records
that are stored on disk... Where as loading them into memory would be 
impossible... Files are stored in RECORD format. (very large) any ideas
for algorithms ? 

Thanks! Send Net-Mail w/ responses!
-+-+-+-                                                                 -+-+-+-
John Adams                                       INTERNET -> jma@gnu.ai.mit.edu

 "What you get is all real; I can't put on an act, it takes brains to do
  that anyway..." -- XTC
-=-=-=-                                                                 -=-=-=-