开发者

iPhone plist creation from .rtf file

I have 开发者_运维百科a list of 800 words in an .rtf file in this format:

word1

word2

.

.

word799

word800

Is there any way I can create a plist of Strings out of this? I really do not want to add each word one at a time.

Thanks A Lot!


What I would do is copy and paste the list of words into a straight up text file. Then you can write a command line script in the language of your choice (I'd choose Python, for example) that will read in this text file and invoke the defaults utility from the command line to write your values. You can use the defaults utility like:

$ defaults write $PLIST_FILE $PROPERTY_NAME $VALUE # sets
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜