But AC Tool keeps writing an empty line in the end of each file, -____________-
Hi, I am having trouble with using lists and files to be able to rewrite files slightly in AC Tool.
CODE
constants
LINE=
TEMP=
ROWS=
LEONIDASES=34
FL=80
AMAT=1
ATLINE=1
LOAD=
SAVE=
WORKFOLDER=C:\TEMP\v1.0.0.2\
FILEPREFIX=LEONIDAS
end
constructs
LOADED=list
TheFile=File
RealFile=List
end
loop $LEONIDASES
ListLoad LOADED, C:\TEMP\v1.0.0.2\LEONIDAS{loopno}
ListCount LOADED, ROWS
SetConst LINE={null}
Loop $ROWS
SetConst TEMP=LOADED[{loopno}]
if {loopno}=1
SetConst LINE=$TEMP
else
SetConst LINE=$LINE + $TEMP
end
end
ListAdd RealFile, $LINE
ListSave RealFile, C:\TEMP\v1.0.0.2\LEONIDAS{loopno}.WEX
ListClear RealFile
end
LINE=
TEMP=
ROWS=
LEONIDASES=34
FL=80
AMAT=1
ATLINE=1
LOAD=
SAVE=
WORKFOLDER=C:\TEMP\v1.0.0.2\
FILEPREFIX=LEONIDAS
end
constructs
LOADED=list
TheFile=File
RealFile=List
end
loop $LEONIDASES
ListLoad LOADED, C:\TEMP\v1.0.0.2\LEONIDAS{loopno}
ListCount LOADED, ROWS
SetConst LINE={null}
Loop $ROWS
SetConst TEMP=LOADED[{loopno}]
if {loopno}=1
SetConst LINE=$TEMP
else
SetConst LINE=$LINE + $TEMP
end
end
ListAdd RealFile, $LINE
ListSave RealFile, C:\TEMP\v1.0.0.2\LEONIDAS{loopno}.WEX
ListClear RealFile
end
The code above now works!