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# - HylianDev - 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.


This forum uses Lukasz Tkacz MyBB addons.