You can load the txt file as a normal table file and then peek the loaded value. Something like this:
NetowrkPath:
LOAD
@1 as NetworkPath
FROM
[C:\Projects\X\Shared-COntent\filepath.txt] (txt, utf8, explicit labels, delimiter is '\t', msq)
;
let vNetworkPath = peek('NetworkPath'); // <-- this is the variable that will contain the network path
Drop Table NetowrkPath;
You can load the txt file as a normal table file and then peek the loaded value. Something like this: