I have created a text file by interrogating an oracle database using sql.
This then gives me uptodate information. I need to pass all the lines from this file to a string for another programs to use.
I can read all the lines using
for /f %%i in (filename) do set str=%%i but this only sets the variable (str) to the last line of the file as expected I suppose. How can I set the variable so that all the lines of the file appear in series see below;
My file looks like /asda@
/tesco@
/aldi@
and I want the variable to be equal to /asda@/tesco@/aldi
The final @ symbol must be omitted also and help how to do this would also be appreciated.