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
Location: San Diego, CA USA
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

Similar Threads
thread Thread Starter Forum Replies Last Post
Learning Objective C iPadProd iPhone/iPad Programming 4 Nov 18, 2012 05:37 PM
Objective C Accessors ag2web Mac Programming 9 Nov 18, 2012 02:53 PM
java to Objective-C spilakalb Alternatives to iOS and iOS Devices 0 Sep 30, 2012 11:17 PM
Testing objective-c Evre iPhone/iPad Programming 21 Jul 12, 2012 07:22 AM
Objective C Syntax nashyo iPhone/iPad Programming 6 Jul 4, 2012 11:56 AM

Forum Jump

All times are GMT -5. The time now is 06:25 AM.

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

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