So I am trying to figure out how to load information from a saved file and just having all kinds of issues.
I can make this work but I want a file to look at and edit if need be.
sub save
set *jc_disco_save %discolist
return
sub loadlist
if *jc_disco_save = n/a
{
set %discolist %Peerless
}
else
{
set %discolist *jc_disco_save
}
return
And what I was trying to do is load the information from a file.
sub save
execute cmd.exe /c echo set , #spc , ! , discolistsave , #spc , %discolist > test.txt
return
sub loadlist
call !test.txt
if !discolistsave = N/A
{
set %discolist %Peerless
}
else
{
set %discolist !discolistsave
}
return
I didn't think it would have been that easy. I tried looking around to find other scripts that loaded data from a file. The only ones I can find are in TM scripts and well yea. In all of them that save it seems to be a little different.
Post Merge: July 26, 2014, 09:04:44 PM
Guess it might also help to post what the save file looks like.
set !discolistsave WM_ZM_SIB_aab_UM_JN_BD_WM_CD_UZ_Y_DB_DF_ME_AV_