diff options
Diffstat (limited to 'pynxc/tutorial_samples/12_fs_numbers_int.py')
-rw-r--r-- | pynxc/tutorial_samples/12_fs_numbers_int.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pynxc/tutorial_samples/12_fs_numbers_int.py b/pynxc/tutorial_samples/12_fs_numbers_int.py new file mode 100644 index 0000000..249c142 --- /dev/null +++ b/pynxc/tutorial_samples/12_fs_numbers_int.py @@ -0,0 +1,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) + |