Question on reading in a Txtfile

Hi,
I’m using for example “AnyFileInputFile” or “AnyFunInterpol” to read in txt-files.

I’d like to parameterize the folder from which this functions should fetch their txt-files.

As an example something like:

AnyString myString = "folder\subfolder\subsubfolder";

AnyInputFile test = {
        FileName = "[u][b]myString[/b][/u]	est.txt";
    };

Unfortunately it doesn’t work this way.
Is there any opportunity?

Thanks!
Benni

P.S. Because there are several files in the folder “myString” it is no option to name the string directly to the txt-File.

Hello Benni,

This is a wrong syntax. Try the following:


AnyString folder= "folder\subfolder\subfolder\";
AnyString file = "test.txt";
AnyInputFile test = {
     FileName = .folder+.file;
};

Kind regards,
Pavel

Aah, thanks a lot, that worked fine!