add an entry to a unix text file or modify an existing entry if it exists?
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