Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/tutorial_samples/12_ASCII.py
blob: 68ae25d1c2a7928bb1c4a11ad08ee8442a72629a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
def main():
    handle=Byte()
    i=Integer()
    slen=Integer()
    s=String()
    
    if (CreateFile("ASCII.txt", 2048, handle) == NO_ERR):

        for i in range(256):
            s=NumToStr(i)
            slen = StrLen(s)
            WriteString(handle, s, slen)
            WriteLn(handle, i)
       
        CloseFile(handle)