The following warnings occurred:
Warning [2] unserialize(): Error at offset 1251 of 1260 bytes - Line: 2650 - File: inc/functions.php PHP 8.3.36 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
[PHP] errorHandler->error_callback
/inc/functions.php 2650 unserialize
/inc/class_datacache.php 138 native_unserialize
/inc/init.php 182 datacache->cache
/global.php 20 require_once
/printthread.php 16 require_once



MFGG Forums
Binary file in C# - Printable Version

+- MFGG Forums (https://forums.mfgg.net)
+-- Forum: MFGG (https://forums.mfgg.net/forumdisplay.php?fid=4)
+--- Forum: Developer Discussion (https://forums.mfgg.net/forumdisplay.php?fid=10)
+--- Thread: Binary file in C# (/showthread.php?tid=315)



Binary file in C# - Jeorge535 - 12-27-2017

How would I load and save a binary format file (more specifically a .GBA file) in C# using Visual Studio 2015?


RE: Binary file in C# - Catonator - 12-28-2017

Stack overflow is probably a better place to ask about this than here. We don't have many active C# devs on this forum.


RE: Binary file in C# - PaulineGamer - 12-28-2017

I use C#, but I've never really messed with binary files before. Somebody who's done binary file stuff in another language would be more qualified to answer this than a humble casual C# dev like myself.


RE: Binary file in C# - Xander - 12-28-2017

Googled it quickly:
https://msdn.microsoft.com/en-us/library/system.io.file.readallbytes(v=vs.110).aspx

Anything in particular that you are trying to do?


RE: Binary file in C# - Jeorge535 - 12-28-2017

Thanks for the responses. I'm attempting to build a level editor for Yoshi's Island: Super Mario Advance 3 for the GBA. I'm already familiar with how the game stores the data. I just need to figure out how to load and store the .GBA ROM file in the program itself for editing - the most important part Laughing . Xander's method sounds the most likely, so I'll give it a try.