Path: utzoo!mnetor!uunet!cbmvax!ulowell!page From: page@swan.ulowell.edu (Bob Page) Newsgroups: comp.sys.amiga Subject: Re: calling all gurus Message-ID: <6026@swan.ulowell.edu> Date: 7 Apr 88 14:24:18 GMT References: <8804051628.AA27845@decwrl.dec.com| <3482@ece-csc.UUCP| <8190@oberon.USC.EDU> Reply-To: page@swan.ulowell.edu (Bob Page) Organization: University of Lowell, Computer Science Dept. Lines: 16 papa@pollux.usc.edu (Marco Papa) wrote: >| fd = open("Devs:System-configuration",O_RDONLY,0); >| read(fd,&pref,sizeof(pref)); > >[instead, use] GetPrefs(&pref, sizeof(pref)); These aren't equivalent. The first actually sets preferences based on what's in a particular file. The second just gets the preferences already in the system (in intuitionbase) and puts it into a structure. You have to open a disk-based file and use SetPrefs() to set the preferences from a file. ..Bob -- Bob Page, U of Lowell CS Dept. page@swan.ulowell.edu ulowell!page