Hello @koolrc812
Here the TxtFile is a list of file names and you cannot directly pass that value. So wither you can use a for each activity and loop through each file names or if there is only one file, then you can use the index to retrieve the filename as below.
TxtFile(0).ToString
Thanks