LordGregGreg
2007-07-14 01:34:03
I am helping Here a little bit with making a script updater sort of thing.
(actually, shes doing really good herself, lol, I just tell her how it wont work and piss her off, lol)
It reads a script, makes some changes, and then saves it with a new name.
Well, the SCAR functions are great… but they are lacking a classic, and very handy little method.
READLINE
so, I made one.
Feel free to use it or add it to srl with credit.
(actually, shes doing really good herself, lol, I just tell her how it wont work and piss her off, lol)
It reads a script, makes some changes, and then saves it with a new name.
Well, the SCAR functions are great… but they are lacking a classic, and very handy little method.
READLINE
so, I made one.
Feel free to use it or add it to srl with credit.
function readFileLine(GregFile:Integer):String;//By Greg Hendrickson!
var
s,bigs:String;
begin
while not EndOfFile (GregFile) do
begin
ReadFileString(GregFile,s,1);
bigs:=bigs+s;
if(s=#10) then
begin
result:=bigs;
exit;
end;
writeln(bigs);
end;
end;