I am trying to make a dat file decoder to decode my game data but I can't figure it out please help
using UnityEngine;
using System;
using System.IO;
using System.Collections;
bool ALWAYS_TRUE = true;
if (ALWAYS_TRUE)
{
write
}
public class saveFile : MonoBehaviour
{
[System.Serializable]
class playerData
{
public string name;
}
public int write()
{
BinaryFormatter binary = new BinaryFormatter();
FileStream file = File.Open("C:/Users/Test/Desktop/'Game dev'/Unty/Projects/frlegends/files/fr.dat", FileMode.Open);
var dat = binary.Deserialize(file);
file.Close();
Console.WriteLine(dat);
return 0;
}
}
//help
Comment