string test = " This is a test. This is only a test. In the event of a real emergency, this would be more than a test."; string s = "ABCDE"; byte c = s[2]; print(c); c = s[3]; print(c); print(s); s[2] = 0x20; print(s); string t = "tuv"; foreach byte c in t { int i = c; prin(c); prin(" = "); print(i); } print(test); print(""); print("count of occurences of letters in above string"); for (int i=0; i<256; i += 1) { int count = countChar(test, i); if (count > 0) { byte b = i; prin(b); prin(" "); print(count); } } to countChar(string s, byte target) into int count { foreach byte c in s { if (c == target) count = count + 1; } }