text to plist

Discussion in 'iOS Programming' started by XcodeNewb, Feb 13, 2009.

  1. XcodeNewb macrumors member

    Feb 6, 2009
    I have a text file with a couple of thousands lines in it. Is there an easy way to convert this to a plist file? Thanks for the help.

    Really, no one knows?
  2. jnic macrumors 6502a

    Oct 24, 2008
    Regex find and replace? Seriously, it's just an XML file. Fire up your favorite editor and wrap the relevant bits in <key> and <string> tags, then add the standard header on top and the corresponding closing tags beneath.
  3. firewood macrumors 604

    Jul 29, 2003
    Silicon Valley
    Sounds like something you should be able to do with a few lines of perl script (or whatever other text scripting language you know).

Share This Page