Guest User

Untitled

a guest
Apr 21st, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. var alpha = new string[]{"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"};
  2. var currFilename = "";
  3. var suffix = ""; //this will become a or ef or whatever we work out
  4. for (var i = -26; i<676; i++)
  5. {
  6. if(i < 0)
  7. //convert the negative to positive.
  8. //Need to subract from 26 to correct the order ie 0-26 rather than 26-0
  9. //which alphabetically reverses the single letter suffixes
  10. suffix = alpha[26 - (i * -1)];
  11. else
  12. suffix = alpha[i / 26] + alpha[i % 26];
  13. currFilename = string.Format("{0}{1}.wav", this.Author.WinscribeAuthorID, suffix);
  14. }
Add Comment
Please, Sign In to add comment