setlocal enabledelayedexpansionfor /f "delims=" %%a in (file.txt) do set txt=!txt!%%~aecho !txt!>New_file.txt