text to plist

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

  1. XcodeNewb macrumors member

    Joined:
    Feb 6, 2009
    #1
    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

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #2
    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

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #3
    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