• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Simple C File IO Question (with code listing)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple C File IO Question (with code listing)


  • Subject: Re: Simple C File IO Question (with code listing)
  • From: Charlton Wilbur <email@hidden>
  • Date: Mon, 11 Jul 2005 00:24:44 -0400


On Jul 11, 2005, at 12:04 AM, Sam Daniel wrote:

It is not clear whether the files, input
and output, have been opened properly for read and write,
respectively, nor that they were closed correctly.

So that's the obvious thing to check! One of your calls to fopen() is failing. Check to be sure that neither input nor output is null, and if one is, take a look at errno to see what the problem is.


My suspicion is that you're making an assumption about the process's working directory that happens not to be accurate. (Well, I *know* you're making an assumption about the process's working directory, and I suspect that it's not an accurate one.)

Charlton


-- Charlton Wilbur email@hidden email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Simple C File IO Question (with code listing)
      • From: Sam Daniel <email@hidden>
References: 
 >Simple C File IO Question (with code listing) (From: Sam Daniel <email@hidden>)

  • Prev by Date: Re: Documentation frustrations
  • Next by Date: Re: Why does this leak memory?
  • Previous by thread: Simple C File IO Question (with code listing)
  • Next by thread: Re: Simple C File IO Question (with code listing)
  • Index(es):
    • Date
    • Thread