Click here to Skip to main content
15,896,726 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
It is my java code please give me the equivalent Objective c

ObjectInputStream inStream = new ObjectInputStream(getClass()
.getClassLoader().getResourceAsStream(keyFile));
key = (SecretKey) inStream.readObject();
Posted
Comments
Member 10907890 8-Aug-14 3:45am    
Please remove my question

1 solution

C#
NSData *data = [[NSFileManager defaultManager] contentsAtPath:path];

in data is than the content of the file.

If you want specialized data, I recommend learning from the NSCoding tutorial of the famous Ray Wenderlich.

I really encourage you to learn such stuff, because that makes Objective-C a very powerful and easy to work with language.

Very important are delegates and protocols, which work "as interfaces" to empower classes with needed features. :-O
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900