Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rutgers!ucsd!ucbvax!mis.mcw.edu!TENAGLIA From: TENAGLIA@mis.mcw.edu (Chris Tenaglia - 257-8765) Newsgroups: comp.lang.icon Subject: A more useful concept Message-ID: <71AFB0BFE0401C1A@mis.mcw.edu> Date: 1 Dec 90 13:48:00 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 25 In the past icon has been getting better and better. For example there's now a remove(filespec) procedure to delete files which is better than system("rm "||filespec) and I think there's also a rename(ofile,nfile) instead of system("mv "||ofile||" "||nfile) I think it would be nice to have a few more file management primitives. Oh oh, maybe they already exist, and I should just read the manual? cpfile(oldfile,newfile) # copy files appfile(oldfile,existingfile) # append files together listvar := dir(path) # generate a list of file names (directory) freedisk:= df(dspec) # returns number of blocks of free disk like unix df or vms show dev/mount ---- Also there are the environmental variables that are accessible with getenv(), and known as logicals to VMS people. Is it possible to capture aliases (symbols to vms people)? Or doesn't that sound like a useful enough feature? Brought to you by Super Global Mega Corp .com