Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!ccu.umanitoba.ca!herald.usask.ca!alberta!ubc-cs!van-bc!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!e2big.mko.dec.com!engage!oldtmr.enet.dec.com!wallace From: wallace@oldtmr.enet.dec.com (Ray Wallace) Newsgroups: comp.sys.atari.st.tech Subject: Re: Problem with my C program to copy files between floppies Message-ID: <1991Apr21.222744.27622@engage.enet.dec.com> Date: 21 Apr 91 23:24:22 GMT Sender: news@engage.enet.dec.com (USENET News System) Organization: Digital Equipment Corporation Lines: 25 In article <1991Apr21.210056.5685@ccu.umanitoba.ca>, umochock@ccu.umanitoba.ca (Russell Ochocki) writes... > >For my first useful C program on my STe, I wrote a program to copy files from >one disk to another. I was tired of using a ram disk every time I wanted to ... >So (and here's my point), I have two files open simulatiously, both in drive >a:, but on different disks. And the ST does not seem to like it. Anyone ever You can't just pull a disk out of a drive with an open file on it, UNLESS GEMDOS tells you to. To get GEMDOS to tell you to change disks, change your program to copy files from drive A: to drive B: (yes I know you only have one drive). When your program tries to access drive B: (ie: to open the file) you will get an alert box telling you to put in the other disk into drive A:, when you go back and access drive A: again (ie: to read the second half of the file) then you will get another alert box telling you to change disks again. This should fix your problem. --- Ray Wallace (INTERNET,UUCP) wallace@oldtmr.enet.dec.com (UUCP) ...!decwrl!oldtmr.enet!wallace (INTERNET) wallace%oldtmr.enet@decwrl.dec.com ---