[fpc-pascal] RE: About reset(aFile, FileNameString)

Jeff Pohlmeyer yetanothergeek at gmail.com
Tue Sep 13 12:33:03 CEST 2005


> All of the Pascals that I have used allowed the 
> following shorthand, an extension:
> reset(aFile, FileNameString); {or rewrite, etc.}
> I tried overloading reset() ... but it didn't work.

procedure reset(var f:text; const fn:string);
begin
assign(f, fn);
system.reset(f);
end;

procedure reset(var f:file; const fn:string);
begin
assign(f, fn);
system.reset(f);
end;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20050913/b2050cbb/attachment.html>


More information about the fpc-pascal mailing list