Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!rbj From: rbj@uunet.UU.NET (Root Boy Jim) Newsgroups: comp.lang.perl Subject: Re: file append/read (+>>) Keywords: file open append and read Message-ID: <126616@uunet.UU.NET> Date: 28 Mar 91 03:31:00 GMT References: <6086@beryl12.UUCP> Distribution: comp Organization: UUNET Communications Services, Falls Church, VA Lines: 16 In article <6086@beryl12.UUCP> mostek@motcid.UUCP (Frank B. Mostek) writes: ?I can't get the + operator to work when I open a file for append. This ?is supposed to open the file for read as well. ? ?open(FILE, "+>>file"); ? ?while () ?{ ? # Never gets in here ?} When opening for append, the pointer is at the end. There is nothing left to read. Seek to the beginning. -- [rbj@uunet 1] stty sane unknown mode: sane