This is an automated archive.
The original was posted on /r/golang by /u/csDarkyne on 2023-09-01 16:29:20+00:00.
Hi guys, I’m currently trying to recreate a tool I wrote in C# but I’m failing at a step I imagined to be rather simple. I need to deserialize a .dat file which I’m not too sure of which format it uses, what I do know is that the C# default BinaryFormatter class manages to flawlessly deserialize/serialize the file.
This is my current code:
Dictionary rows = new Dictionary();
using (FileStream fileStream = new FileStream("file.dat", FileMode.Open)) {
BinaryFormatter bf = new BinaryFormatter();
#pragma warning disable SYSLIB0011
rows = (Dictionary)bf.Deserialize(fileStream);
}
I’m looking for a way to solve this in go for hours, can anyone help me out with this, is there a stdlib or a third party plugin to solve this issue?
You must log in or register to comment.