Is it possible to use a variable in the assignfile command?
Eg.
f : Textfile ;
sFile : string ; {contains 'MyFile.txt' as content}
...
cFileDir = 'C:\Users\User\Desktop\Data Engine\Data\Country' ;
...
Assignfile(f, cFileDir + '\' + sFile) ;
...
I appreciate your help very much. if it's unclear I'll edit the question to add more details.
Yes.
AssignFile
has typestring
.cFileDir + '\' + sFile
has typestring
.FWIW,
AssignFile
is known as a function rather than a command. Getting on top of terminology like this will help you learn the language more effectively.