English 中文(简体)
如何在文件中写入+NSDictionary
原标题:How write + NSDictionary in file
  • 时间:2010-10-14 20:35:39
  •  标签:
  • iphone
  • file
 NSMutableDictionary *dicta = [[NSMutableDictionary alloc]  init];

 [dicta writeToFile:[docDirectory stringByAppendingPathComponent:foo] atomically:YES];

我只知道怎么写

W+?

问题回答

如果您谈论的是附加到文件中。通常,您会使用代码修改NSMutableDictionary,然后使用上面发布的代码将整个Dictionary保存到磁盘。





相关问题
How can I load a folders files into a ListView?

I d like to have a user select a folder with the FolderBrowserDialog and have the files loaded into the ListView. My intention is to make a little playlist of sorts so I have to modify a couple of ...

File Handling Issue

I am developing a tool in c#, at one instance I start writing into a xml file continuously using my tool,when i suddenly restart my machine the particular xml file gets corrupted, what is the reason ...

C# GemBox Excel Import Error

I am trying to import an excel file into a data table using GemBox and I keep getting this error: Invalid data value when extracting to DataTable at SourceRowIndex: 1, and SourceColumnIndex: 1. As ...

Saving output of a for-loop to file

I have opened a file with blast results and printed out the hits in fasta format to the screen. The code looks like this: result_handle = open("/Users/jonbra/Desktop/my_blast.xml") from Bio.Blast ...

热门标签