Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 1, 2013, 01:30 PM   #1
timehacker11
macrumors newbie
 
Join Date: Apr 2013
Objective-C: C# BinaryReader and BinaryWriter?

I'm a .NET programmer, and would like to know if there is an equivalent of .NET's BinaryReader and BinaryWriter for Objective-C.

Thanks,
timehacker11.
timehacker11 is offline   0 Reply With Quote
Old May 1, 2013, 03:40 PM   #2
mfram
macrumors 6502a
 
Join Date: Jan 2010
Perhaps if you told us what they do, we can answer that question. Offhand, given the names... when using an NSData object:

Code:
 initWithContentsOfFile:options:error:
 writeToFile:options:error:
mfram is offline   0 Reply With Quote
Old May 1, 2013, 04:06 PM   #3
timehacker11
Thread Starter
macrumors newbie
 
Join Date: Apr 2013
Basically, Binary Readers and Writers allow you to read and write primitive file types. (Not the usual file types like txt, xml, etc)

I want to read and write to .blight files. The BLIGHT file is described here:
http://wiki.tockdom.com/wiki/Blight_(File_Format)

Thanks,
timehacker11.
timehacker11 is offline   0 Reply With Quote
Old May 2, 2013, 05:21 AM   #4
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by timehacker11 View Post
Basically, Binary Readers and Writers allow you to read and write primitive file types. (Not the usual file types like txt, xml, etc)

I want to read and write to .blight files. The BLIGHT file is described here:
http://wiki.tockdom.com/wiki/Blight_(File_Format)

Thanks,
timehacker11.
Use posix calls. Or NSFileHandle. Or NSInputStream. Or the NSData methods mentioned above.
gnasher729 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 06:54 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC