T timehacker11 macrumors newbie Original poster Apr 3, 2013 18 0 May 1, 2013 #1 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.
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.
mfram Contributor Jan 23, 2010 1,382 435 San Diego, CA USA May 1, 2013 #2 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:
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:
T timehacker11 macrumors newbie Original poster Apr 3, 2013 18 0 May 1, 2013 #3 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.
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.
gnasher729 Suspended Nov 25, 2005 17,980 5,566 May 2, 2013 #4 timehacker11 said: 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. Click to expand... Use posix calls. Or NSFileHandle. Or NSInputStream. Or the NSData methods mentioned above.
timehacker11 said: 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. Click to expand... Use posix calls. Or NSFileHandle. Or NSInputStream. Or the NSData methods mentioned above.