objective c - Replica of file to Hashtable -


Before I told you to input the input from the file before moving it to the hashteble, in fact I actually Sorry I need to identify important and value from the text file and put it in my hashtable. I.e.

  this is a text file: LENOVA = Class_Name DELL = Class_Name WIPRO = Class_Name Samsung = Class_Name  

Take it as a key / value combination in the Hashible Load the class from, and at the end, hashtable.

  HashTable has to store it like this: main value Lenovo class_name DELL Class_Name WIPRO Class_Name Samsung Class_Name  

How to do it in Objective-C ?? Let me give you some ideas to proceed

If you have permission to change the input text file so that it is included in Ho:

 "Lenovo" = "square_name"; "DELL" = "square_name"; "Wipro" = "class_name"; "Samsung" = "square_name"; 

Then you can do this:

  NSDictionary * dict = [contentsofffile with NSDictionary dictionary: @ "myfile.txt"];  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -