Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pynxc/tutorial_samples/12_fs_numbers_int.py
blob: 249c14233094422c6984470e055fd67b7da94c1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
def main():
   handle=time=Byte(0)
   i=fsize=numin=Integer()
   
   DeleteFile("int.txt")
   CreateFile("int.txt",4096,handle)
   
   for i in range(1000,10000,1000):
       WriteLn(handle,i)
       
   CloseFile(handle)
   OpenFileRead("int.txt",fsize,handle);
   
   while (ReadLn(handle,numin)==NO_ERR):
       ClearScreen()
       NumOut(30,LCD_LINE5,numin)
       Wait(500)
   
   CloseFile(handle)