Hello - Newbie question.
 
I want to open two text files for writing to.
 
Which one I write to depends on a condition - but the procedures for opening and writing are common to both.
 
So there are several procedures which reference a FileName
eg
AssignFile(FileName, File);
ReWrite(FileName);
Write(FileName, 'Data');
 
where FileName is of type TextFile and File is a string.
 
My question is how can I have FileName as a 'variable' such that
under one condition it is FileOne
and under another it is FileTwo
 
and I can thus use the same procedures?
 
Hope this makes sense.
 
Mark
 
BEGIN:VCARD
VERSION:2.1
N:Howard;Mark
FN:Mark Howard
ORG:Forest Production Systems Ltd
TEL;WORK;VOICE:(07) 348 8177
TEL;CELL;VOICE:(021) 477564
TEL;WORK;FAX:(07) 348 8178
ADR;WORK:;;P.O.Box 5155;Rotorua
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:P.O.Box 5155=0D=0ARotorua
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20010309T002044Z
END:VCARD

Reply via email to