FileRead, number, number.txt ; reads the file that saves the current number newnumber := %number% + 1 ; adds 1 to the current number FileDelete, number.txt ; deleted the old file with the old number FileAppend, %newnumber%, number.txt ; makes a new file with the new number MsgBox, %newnumber% ; shows the new number
Doing math with variables
Started by
Mathematical Gangsta
, Mar 31 2007 09:40 AM
2 replies to this topic
There's an error in this script but i don't know what error.
#1
-
Posted 31 March 2007 - 09:40 AM