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