Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- startup --
- -- default program --
- PROGRAM='Mine'
- POSOTION=1
- -- settings --
- if fs.exists('settings/last') then
- fh=io.open('settings/last')
- PROGRAM=fh:read()
- POSITION=fh:read()
- fh:close()
- else
- fh=io.open('settings/last', 'w')
- fh:write(PROGRAM..'\n')
- fh:write(POSITION..'\n')
- fh:close()
- end
- print(PROGRAM)
- print(POSITION)
- shell.run(PROGRAM, tonumber(POSITION))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement