how to display all lines in an txt file as a variable
Posted: 12 Dec 2020 13:45
Hi!,
I am having some problems loading a txt file line by line and then being able to save all that information into a variable. i have tried this but it only displays text before an space. The text inside log.txt has spaces so i would like to desplay the full length of text.
Rasil
I am having some problems loading a txt file line by line and then being able to save all that information into a variable. i have tried this
Code: Select all
FOR /F %%i IN (log.txt) DO ECHO %%i
Rasil