Example #1
0
 /// <summary>
 /// Writes the input rotor count to the file.
 /// </summary>
 /// <param name="rotorKeys">The new number of rotors to save.</param>
 /// <param name="rotorKeysFile">The rotor count file to save the count to.</param>
 private void SaveToFile(RotorKeys rotorKeys, string rotorKeysFile)
 {
     Directory.CreateDirectory(Path.GetDirectoryName(rotorKeysFile));
     RotorIO.Write(rotorKeys, rotorKeysFile);
 }