daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Apr 21st, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top