Procedure WriteFile(FileName, Data: String)
;
var
File: TextFile ;
begin
AssignFile(File,
FileName);
Rewrite(File);
Write(File, Data);
end ; Procedure Yourstuff(Cond1: Boolean; Data: String) ;
begin
if cond1 then WriteFile('FileOne.txt', Data) else WriteFile('FileTwo.txt', Data) end ; Dave.
|
- RE: [DUG]: Referencing variable TextFile names Edge, Martin (SSABSA)
- Re: [DUG]: Referencing variable TextFile names Mark Howard
- Re: [DUG]: Referencing variable TextFile n... Nello Sestini
- Re: [DUG]: Referencing variable TextFile n... Mark Howard
- Re: [DUG]: Referencing variable TextFi... Steve Peacocke
- RE: [DUG]: Referencing variable TextFi... Damien Long
- [DUG]: Paths and UNCs Rohit Gupta
- Re: [DUG]: Paths and UNCs [EMAIL PROTECTED]
- Re: [DUG]: Paths and UNCs Rohit Gupta
- Re: [DUG]: Paths and UNCs Dave
- RE: [DUG]: Referencing variable TextFi... Dave
- RE: [DUG]: Referencing variable TextFile names Edge, Martin (SSABSA)