BackupUtilityTest.Helper.TestFile.Modify C# (CSharp) Method

Modify() public static method

Modifies contents of test file.
public static Modify ( string path ) : void
path string
return void
        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();
        }
    }