I'm trying to write a string into a binary file, everything is correct but the 2 first chars are wrong (ù.). It goes like this :
Her is the code of the function:
public static void WriteFile(string filePath, string content)
{
try
{
using (BinaryWriter binWriter = new BinaryWriter(File.Open(filePath, FileMode.Create)))
{
binWriter.Write(content);
}
}
catch (Exception err)
{
Console.WriteLine(err);
}
}
Thanks for the help