The_Shermanator
2008-11-02 23:38:41
Ok so im trying to have my script save the last progress report, which is the easy part. So I was looking at the way SRL writes stuff to files and I tried to copy it.
So I came up with…
And I suppose it writes it because I look to where it did and…when I try to open it, it says its in use by another program(scar).
Could anybody help?
EDIT: Once I close scar, it did what it was supposed to, but could anybody still help me stop it from using it after I'm done with it :EDIT
-Shermanator
So I came up with…
Procedure SetupSaving;
begin
TheFileNumber := RewriteFile(AppPath + 'Shermanator''s Progress Reports.txt', True);
if TheFileNumber >= 0 then
WriteLn(' Found somewhere to save!');
end;
Procedure SaveAndWriteLN(Text: string);
begin
if(FinalProggy)then
begin
WriteFileString(TheFileNumber, text+#13#10);
WriteLn(Text);
end else
WriteLn(Text);
end;And I suppose it writes it because I look to where it did and…when I try to open it, it says its in use by another program(scar).
Could anybody help?
EDIT: Once I close scar, it did what it was supposed to, but could anybody still help me stop it from using it after I'm done with it :EDIT
-Shermanator