public static void Modify(string path) { using FileStream f = new(path, FileMode.Append); byte[] testBytes = new byte[] { 0x4d, 0x4f, 0x44 }; f.Write(testBytes, 0, testBytes.Length); f.Close(); } }