[Solved] How do I convert this c++ function to c#? [closed]


Use the TextWriter class.

using (StreamWriter writer = File.CreateText("file.txt"))
{
    writer.WriteLine("64");
    // etc.
}

Or async:

using (StreamWriter writer = File.CreateText("file.txt"))
{
    await writer.WriteLineAsync("64");
    // etc.
}

3

solved How do I convert this c++ function to c#? [closed]