public void Copy(int fileRegisterIndex1, Helper.Semantics semantics, int fileRegisterIndex2, byte[] salt) { Console.WriteLine("COPY FILE " + fileRegisterIndex1 + " TO " + fileRegisterIndex2); try { FileData fileData = ReadFileData(fileRegisterIndex1, semantics); byte[] saltedContents = Helper.AppendBytes(fileData.Contents, salt); Write(fileRegisterIndex2, saltedContents); } catch (FileDoesNotExistException e) { Console.WriteLine(e.Message); return; } }