• 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
add an entry to a unix text file or modify an existing entry if it exists?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

add an entry to a unix text file or modify an existing entry if it exists?


  • Subject: add an entry to a unix text file or modify an existing entry if it exists?
  • From: "D.Walsh" <email@hidden>
  • Date: Thu, 23 Dec 2004 03:32:31 -0500
  • Mta-interface: amavisd-new-2.2.1 (2004-12-22) at daleenterprise.com

Anyone have a routine that they wouldn't mind sharing that takes a text file and adds an entry if it doesn't exists?

I've got a line I need to insert into hostconfig 'MAILTRANSPORT=-YES-' without disturbing the rest of the file content and I need a way to change the -YES- to -NO- as well?

I believe I can link this to a NIB check-box if I can get some code that makes the changes, I've had success working with bundle prefs of an app but this is an area I'm unfamiliar with and am looking for a shortcut I can learn from (making edits to a non pref file).

-- Dale

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: dare I ask about CodeSense again...
  • Next by Date: Re: Timed out fetching data
  • Previous by thread: Re: dare I ask about CodeSense again...
  • Next by thread: Re: Timed out fetching data
  • Index(es):
    • Date
    • Thread